Bug#969573: init-system-helpers: service runs any program with relative path
Michael Biebl
biebl at debian.org
Sat Sep 5 10:03:44 BST 2020
Am 05.09.20 um 10:27 schrieb hamish:
> Package: init-system-helpers
> Version: 1.56+nmu1
> Severity: normal
>
> The service commands seems to be able to run arbitrary commands given a relative path:
>
> $ sudo service ../../bin/ls [ 6:25PM]
> bin dev home initrd.img.old lib32 libx32 media opt root sbin sys usr vmlinuz
> boot etc initrd.img lib lib64 lost+found mnt proc run srv tmp var vmlinuz.old
>
> $ sudo service ../../bin/echo hmmm [ 6:27PM]
> hmmm
>
>
> Absolute paths don't work though:
>
> $ sudo service /bin/ls [ 6:26PM]
> /bin/ls: unrecognized service
>
>
>
> Is this intentional?
No, it's a bug in the sysvinit fallthrough.
Happy to take a patch for that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200905/b8921bbd/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list