Re: systemd 230 change - KillUserProcesses defaults to yes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 27.05.16 08:09, Chris Adams (linux@xxxxxxxxxxx) wrote:

> Once upon a time, Zbigniew Jędrzejewski-Szmek <zbyszek@xxxxxxxxx> said:
> > Also note that running jobs in a systemd service has advantages on the
> > server: better accounting, more transparency, logs are easier to read.
> > The (old) default of allowing left-over session processes to live on
> > seems especially bad on a server with multiple users.
> 
> Starting a one-off task under screen and detaching is an age-old server
> management process.  Breaking that is not acceptable IMHO.

And it is still supported.

In my view it was actually quite strange of UNIX that it by default
let arbitrary user code stay around unrestricted after logout. It has
been discussed for ages now among many OS people, that this should
possible but certainly not be the default, but nobody dared so far to
flip the switch to turn it from a default to an option. Not cleaning
up user sessions after logout is not only ugly and somewhat hackish
but also a security problem.

systemd 230 now finally flipped the switch and finally by default
cleans everything up correctly when the user logs out. But we do so in
a very conservative way actually:

 a) there's a compile time switch to turn this off globally
    (--without-kill-user-processes, not used in Fedora)
 
 b) there's a runtime switch to turn this off locally on the system
    (in logind.conf)

 c) there's a way to opt-out invidually for each user and each task
    from the cleanup logic, via systemd-run/loginctl linger. This
    operation goes through PK, and thus can be configured in a more
    strict or more open policy, depending on whhat the admin prefers.

I am pretty sure we should consider it our duty as Fedora developers
to improve the Linux platform, and I am pretty sure that properly
cleaning up processes on logout is a step towards that, not against
it.

Lennart

-- 
Lennart Poettering, Red Hat
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux