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.





Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to