Systemd/src/home
Lennart Poettering d1f6e01e47 homed: explicitly deactivate all home directories on shutdown
Let's explicitly deactivate all home dirs on shutdown, in order to
properly synchronizing unmounting and avoiding blocking devices.

Previously, we'd rely on automatic deactivation when home directories
become unused. However, that scheme is asynchronous, and ongoing
deactviations might conflicts with attempts to unmount /home. Let's fix
that by providing an explicit service systemd-homed-activate.service
whose only job is to have a ExecStop= line that explicitly deactivates
all home directories on shutdown. This service can the be ordered after
home.mount and similar, ensuring that we'll first deactivate all homes
before deactivating /home itself during shutdown.

This is kept separate from systemd-homed.service so that it is possible
to restart systemd-homed.service without deactivating all home
directories.

Fixes: #16842
2020-09-30 14:37:52 +02:00
..
home-util.c Move test_password_{one,many} to libcrypt-util.c 2020-09-15 11:52:30 +02:00
home-util.h Move test_password_{one,many} to libcrypt-util.c 2020-09-15 11:52:30 +02:00
homectl-fido2.c Merge pull request #16981 from keszybz/use-crypt_ra 2020-09-18 19:46:08 +02:00
homectl-fido2.h homectl: add support for enrolling FIDO2 HMAC-SECRET tokens 2020-07-01 11:17:28 +02:00
homectl-pkcs11.c Merge pull request #16981 from keszybz/use-crypt_ra 2020-09-18 19:46:08 +02:00
homectl-pkcs11.h homectl: add --pkcs11-uri=auto and --pkcs-11-uri=list support 2020-07-01 11:20:26 +02:00
homectl-recovery-key.c Add a helper function that does make_salt+crypt_r 2020-09-15 09:30:56 +02:00
homectl-recovery-key.h homectl: teach homectl to generate recovery keys 2020-08-25 18:14:55 +02:00
homectl.c homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
homed-bus.c homed-bus: add missing spdx header 2020-09-18 22:35:36 +02:00
homed-bus.h
homed-conf.c homed: downgrade log level 2020-09-10 15:21:43 +09:00
homed-conf.h homed: make default storage/file system type configurable in homed.conf 2020-05-07 23:33:09 +02:00
homed-gperf.gperf homed: make default storage/file system type configurable in homed.conf 2020-05-07 23:33:09 +02:00
homed-home-bus.c tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
homed-home-bus.h shared: split out BusObjectImplementor APIs 2020-06-30 15:08:35 +02:00
homed-home.c homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
homed-home.h homed: make sure our worker processes finish before we exit 2020-09-18 22:35:36 +02:00
homed-manager-bus.c homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
homed-manager-bus.h homed: convert to the new scheme and add --bus-introspect 2020-05-06 09:13:42 +02:00
homed-manager.c homed: make sure our worker processes finish before we exit 2020-09-18 22:35:36 +02:00
homed-manager.h homed: make it easier to run multiple instances of homed 2020-09-18 22:35:36 +02:00
homed-operation.c home: fix several typos 2020-03-31 15:16:36 +02:00
homed-operation.h homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
homed-varlink.c homed: make it easier to run multiple instances of homed 2020-09-18 22:35:36 +02:00
homed-varlink.h
homed.c homed: make it easier to run multiple instances of homed 2020-09-18 22:35:36 +02:00
homed.conf homed: default to "btrfs" as fs type in the LUKS backend 2020-08-19 15:46:07 +02:00
homework-cifs.c homed: add support for authenticating with fido2 hmac-secret tokens 2020-07-01 11:17:28 +02:00
homework-cifs.h homed: add support for authenticating with fido2 hmac-secret tokens 2020-07-01 11:17:28 +02:00
homework-directory.c mount-util: rework umount_verbose() to take log level and flags arg 2020-09-23 18:57:36 +02:00
homework-directory.h homed: add support for authenticating with fido2 hmac-secret tokens 2020-07-01 11:17:28 +02:00
homework-fido2.c homed: add support for authenticating with fido2 hmac-secret tokens 2020-07-01 11:17:28 +02:00
homework-fido2.h homed: add support for authenticating with fido2 hmac-secret tokens 2020-07-01 11:17:28 +02:00
homework-fscrypt.c homed: add support for authenticating with fido2 hmac-secret tokens 2020-07-01 11:17:28 +02:00
homework-fscrypt.h homed: add support for authenticating with fido2 hmac-secret tokens 2020-07-01 11:17:28 +02:00
homework-luks.c mount-util: rework umount_verbose() to take log level and flags arg 2020-09-23 18:57:36 +02:00
homework-luks.h shared: rename crypt-util.c → cryptsetup-util.c 2020-09-02 15:00:32 +02:00
homework-mount.c mount-util: rework umount_verbose() to take log level and flags arg 2020-09-23 18:57:36 +02:00
homework-mount.h home: respect user record mount flags 2020-05-24 22:48:50 +02:00
homework-pkcs11.c user-record: rename JSON field "pkcs11Pin" to "tokenPin" 2020-07-01 11:17:28 +02:00
homework-pkcs11.h
homework-quota.c
homework-quota.h
homework.c mount-util: rework umount_verbose() to take log level and flags arg 2020-09-23 18:57:36 +02:00
homework.h homed: mark LUKS loopback file as "dirty" via xattr when in use 2020-08-25 18:18:46 +02:00
meson.build homectl: teach homectl to generate recovery keys 2020-08-25 18:14:55 +02:00
modhex.c home: add helper to process/normalize modhex64 recovery keys 2020-08-25 18:14:55 +02:00
modhex.h home: add helper to process/normalize modhex64 recovery keys 2020-08-25 18:14:55 +02:00
org.freedesktop.home1.conf
org.freedesktop.home1.policy homed: fix typo 2020-02-29 16:06:45 +01:00
org.freedesktop.home1.service
pam_systemd_home.c user-record: don't refuse login when last pw change time is in the future 2020-09-21 18:02:35 +02:00
pam_systemd_home.sym home: add pam_systemd_home.so PAM hookup 2020-01-28 22:36:41 +01:00
test-modhex.c home: add helper to process/normalize modhex64 recovery keys 2020-08-25 18:14:55 +02:00
user-record-pwquality.c Move test_password_{one,many} to libcrypt-util.c 2020-09-15 11:52:30 +02:00
user-record-pwquality.h home: make libpwquality dep a runtime dlopen() one 2020-08-19 10:03:24 +02:00
user-record-sign.c
user-record-sign.h
user-record-util.c homed: ignore ratelimiting counters when timestamp is from future 2020-09-21 18:02:35 +02:00
user-record-util.h homed: report a home directory as "dirty" if image file has dirty flag 2020-08-25 18:18:56 +02:00