1
0
mirror of https://github.com/systemd/systemd.git synced 2025-05-27 21:05:55 +03:00
Adrian Vovk a5b009d935
homework: Lock/Unlock: Freeze/Thaw user session
Whenever a home directory is in a locked state, accessing the files of
the home directory is extremely likely to cause the thread to hang. This
will put the session in a strange state, where some threads are hanging
due to file access and others are not hanging because they are not
trying to access any of the user's files.

This can lead to a whole slew of consequences. For example, imagine a
likely situation where the Wayland compositor is not hanging, but the
user's open apps are. Eventually, the compositor will detect that none
of the apps are responding to its pings, assume that they're frozen
(which they are), and kill them. The systemd user instance can end up in
a similarly confused state and start killing user services. In the worst
case, killing an app at an unexpected moment can lead to data loss.

The solution is to suspend execution of the whole user session by
freezing the user's slice.
2024-03-05 12:12:36 -05:00
..
2023-01-29 20:26:28 +09:00
2019-12-11 17:04:20 +01:00
2024-02-23 09:56:00 +01:00
2024-02-23 09:56:00 +01:00
2024-02-23 09:56:00 +01:00
2024-02-24 11:30:39 +09:00
2024-02-23 09:56:00 +01:00
2019-12-11 17:04:20 +01:00
2024-02-23 09:56:00 +01:00
2024-02-23 09:56:00 +01:00
2024-02-24 11:30:39 +09:00
2024-02-23 09:56:00 +01:00
2024-02-24 11:30:39 +09:00