Re: Re: Bug#727708: tech-ctte: Decide which init system to default to in Debian.
On Thu, 31 Oct 2013 06:33:44 +0100 John Paul Adrian Glaubitz wrote:
> messed up custom code may end up rendering your whole system unusable
> if you are smart enough to mess up an rm command. Just have a look
> at this wonderful bug in upstart [1].
> [1] https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/557177
This doesn't appear to be a bug in Upstart. A service file assumed the
caller would set MOUNTPOINT=/tmp in the environment, and invoked this
(inline) shell script:
> cd "${MOUNTPOINT}"
> find . -depth -xdev $TEXPR $EXCEPT ! -type d -delete
I assume you could launch bad code from systemd just as easily.
(Actually, if you can't, that's probably a limitation).
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
Reply to: