oss-sec mailing list archives
Re: systemd fails to parse user that should run service
From: Leonid Isaev <leonid.isaev () jila colorado edu>
Date: Thu, 6 Jul 2017 13:27:53 -0600
On Thu, Jul 06, 2017 at 03:02:07PM +0100, Simon McVittie wrote:
The problem is that my new and shiny script won't work as intended on old systemD versions which silently ignore User= directive.I am not aware of any such version existing. The 2010 commit "first attempt at proper service/socket logic", which was 6 months before the release of systemd version 1 and was the first commit to introduce ExecStart, also introduced User.
OK, but then there is no excuse to silently ignore any kind of error in User=. If systemd can not start unit as a specified user, it must fail it, just like ExecStart: if the command specified there is not found, it doesn't start a random shell or a web server, right?. I thought the current behavior of ignoring some syntax "mistakes" was put in place by design because units have to be backwards copatible with older systemd versions. Cheers, -- Leonid Isaev
Current thread:
- Re: systemd fails to parse user that should run service, (continued)
- Re: systemd fails to parse user that should run service Jeremy Stanley (Jul 05)
- Re: systemd fails to parse user that should run service Kristian Fiskerstrand (Jul 05)
- Re: systemd fails to parse user that should run service Simon McVittie (Jul 05)
- Re: systemd fails to parse user that should run service Ben Tasker (Jul 06)
- Re: systemd fails to parse user that should run service Perry E. Metzger (Jul 05)
- Re: systemd fails to parse user that should run service Robert Scheck (Jul 05)
- Re: systemd fails to parse user that should run service Patrick J. Volkerding (Jul 06)
- Re: systemd fails to parse user that should run service Simon McVittie (Jul 06)
- Re: systemd fails to parse user that should run service Leonid Isaev (Jul 06)
- Re: systemd fails to parse user that should run service Simon McVittie (Jul 06)
- Re: systemd fails to parse user that should run service Leonid Isaev (Jul 06)
- Re: systemd fails to parse user that should run service Simon McVittie (Jul 06)
- Re: systemd fails to parse user that should run service Martin Steigerwald (Jul 06)
- Re: systemd fails to parse user that should run service Martin Steigerwald (Jul 06)