summaryrefslogtreecommitdiff
path: root/src/pam-module.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-15 23:22:05 +0100
committerLennart Poettering <lennart@poettering.net>2010-11-15 23:22:33 +0100
commit96a8cbfae1b37cf0a9c0591bfef93f9de1561bc4 (patch)
tree96065b12482ca43cc11125c0792b4368174fa0fc /src/pam-module.c
parentaf2d49f70bcff20efaf2d69aecaf4b3e898ff1fa (diff)
pam: rename master user cgroup to 'master'
Diffstat (limited to 'src/pam-module.c')
-rw-r--r--src/pam-module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pam-module.c b/src/pam-module.c
index 5f2df4b439..d9458df98b 100644
--- a/src/pam-module.c
+++ b/src/pam-module.c
@@ -335,7 +335,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
r = asprintf(&buf, "/user/%s/%s", username, id);
} else
- r = asprintf(&buf, "/user/%s/user", username);
+ r = asprintf(&buf, "/user/%s/master", username);
if (r < 0) {
r = PAM_BUF_ERR;
@@ -369,7 +369,7 @@ static int session_remains(pam_handle_t *handle, const char *user_path) {
while ((r = cg_read_subgroup(d, &subgroup)) > 0) {
- remains = !streq(subgroup, "user");
+ remains = !streq(subgroup, "master");
free(subgroup);
if (remains)
@@ -430,7 +430,7 @@ _public_ PAM_EXTERN int pam_sm_close_session(
if ((id = pam_getenv(handle, "XDG_SESSION_ID")) && created) {
if (asprintf(&session_path, "/user/%s/%s", username, id) < 0 ||
- asprintf(&nosession_path, "/user/%s/user", username) < 0) {
+ asprintf(&nosession_path, "/user/%s/master", username) < 0) {
r = PAM_BUF_ERR;
goto finish;
}