[Bug 230621] rc.subr wrong override for $command
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Aug 26 21:38:59 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230621
Jilles Tjoelker <jilles at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jilles at FreeBSD.org
--- Comment #1 from Jilles Tjoelker <jilles at FreeBSD.org> ---
There is nothing that sets $name; each rc.d script must set it itself. To match
documentation (rc.conf(5)) that states that shell variables can be set such as
⟨name⟩_nice, the name itself needs to be a valid shell variable name.
So if an rc.d script sets name to a literal, it must be a valid shell variable
name. If a script can be linked to multiple names for multiple instances of a
service, this translates to a requirement on the administrator about which
names they can use. Sanitization here may as well make things more confusing.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-rc
mailing list