Bug#619464: documentation: service also passes PATH to init scripts

Martin Pitt mpitt at debian.org
Tue Apr 26 08:32:54 BST 2016


Control: tag -1 pending

Felipe Sateler [2016-03-11 19:10 -0300]:
> Control: tags -1 confirmed
> 
> On Thu, 24 Mar 2011 02:11:06 -0700 Russ Allbery <rra at debian.org> wrote:
> > The man page for the service utility says that it only passes LANG
> > and TERM to the init script, but it also passes PATH.

Fixed manpage in git.

> Indeed. The question is, should it? Or should it instead pass a sanitized value?

init.d scripts absolutely need $PATH, yes. I don't see any point in
deviating from what /etc/environment sets. If someone calls it
manually on a shell through sudo or su, those two already sanitize the
environment, I don't think we should duplicate this in more places.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the Pkg-systemd-maintainers mailing list