[Bug 246158] USE_RC_SUBR ought to check or enforce script ownership

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 4 06:23:11 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246158

            Bug ID: 246158
           Summary: USE_RC_SUBR ought to check or enforce script ownership
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: milios at ccsys.com

USE_RC_SUBR implicitly adds the script to the end of the plist, affected by
@owner and @group. This invites some foot-shooting.

I noticed an rc.d script owned by the daemon it controlled. I added a patch to
PR# 218179.

Then I asked myself if modifying the operation of USE_RC_SUBR to avoid this
happening might be a better solution. At the bare minimum the appropriate page
in the Porter's Handbook deserves a note. I don't have patches provided for any
of that, I'm sorry.

I don't know that portlint does or doesn't check for this issue. Still though,
even if it does, any hypothetical reason that the rc.d script have an owner
besides root (and i can't think of a valid one without going very contrived)
should be equal reason to point it out to the user during the install process.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list