diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-24 18:31:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-24 18:31:51 +0100 |
commit | 6f2c813667018cc54f127a15a578a74071b0fa24 (patch) | |
tree | 8a680e0082ce966e94b070f36f64533d1839822d /src/home/homework-directory.h | |
parent | eae3a68144d9825535b22db0bbb06a024a0b4400 (diff) | |
download | systemd-6f2c813667018cc54f127a15a578a74071b0fa24.tar.gz |
homework: don't try to shift uidmap for already activated home areas
When we want to operate on an already activated home area we so far
tried to reapply the uidmapping logic. We shouldn't do that, it's
already applied after all.
We only want to apply this for newly activated home areas. Hence check
for the right HomeSetupFlags flag for it HOME_SETUP_ALREADY_ACTIVATED.
The patch is actually in theory a two-liner. Except that so far we don#t
pass the HomeSetupFlags flags down all necessary functions where the
uidmap stuff will eventually run. Hence this larger than intended
commit.
Diffstat (limited to 'src/home/homework-directory.h')
-rw-r--r-- | src/home/homework-directory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homework-directory.h b/src/home/homework-directory.h index ecbb2f143c..fe03e5deb1 100644 --- a/src/home/homework-directory.h +++ b/src/home/homework-directory.h @@ -5,6 +5,6 @@ #include "user-record.h" int home_setup_directory(UserRecord *h, HomeSetup *setup); -int home_activate_directory(UserRecord *h, HomeSetup *setup, PasswordCache *cache, UserRecord **ret_home); +int home_activate_directory(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *cache, UserRecord **ret_home); int home_create_directory_or_subvolume(UserRecord *h, HomeSetup *setup, UserRecord **ret_home); int home_resize_directory(UserRecord *h, HomeSetupFlags flags, HomeSetup *setup, PasswordCache *cache, UserRecord **ret_home); |