summaryrefslogtreecommitdiff
path: root/src/login/logind-user.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-08-08 15:27:49 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-13 12:59:29 +0200
commitd5ac9d060267820aabdf9af509a54a1830b27b7d (patch)
treecee01bedea41e8e58c7a00fe76c563f054b0be1a /src/login/logind-user.h
parent07ee5adb356b9fde500c8a5226f24a314789832b (diff)
downloadsystemd-d5ac9d060267820aabdf9af509a54a1830b27b7d.tar.gz
logind: add a RequiresMountsFor= dependency from the session scope unit to the home directory of the user
This is useful so that during shutdown scope units are always terminated before the mounts necessary for the home directory. (Ideally we'd also add a similar dependency from the user@.service instance to the home directory, but this isn't as easy as that service is defined statically and not dynamically, and hence not easy to modify dynamically, in particular when it comes to deps)
Diffstat (limited to 'src/login/logind-user.h')
-rw-r--r--src/login/logind-user.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-user.h b/src/login/logind-user.h
index e05646adc9..c41973e27d 100644
--- a/src/login/logind-user.h
+++ b/src/login/logind-user.h
@@ -23,6 +23,7 @@ struct User {
uid_t uid;
gid_t gid;
char *name;
+ char *home;
char *state_file;
char *runtime_path;
@@ -49,7 +50,7 @@ struct User {
LIST_FIELDS(User, gc_queue);
};
-int user_new(User **out, Manager *m, uid_t uid, gid_t gid, const char *name);
+int user_new(User **out, Manager *m, uid_t uid, gid_t gid, const char *name, const char *home);
User *user_free(User *u);
DEFINE_TRIVIAL_CLEANUP_FUNC(User *, user_free);