Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 May 2020 06:23:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 246158] USE_RC_SUBR ought to check or enforce script ownership
Message-ID:  <bug-246158-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246158

            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@FreeBSD.org
          Reporter: milios@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 p=
age
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 thou=
gh,
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 proce=
ss.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246158-7788>