userdb: Add missing .membership extension to membership files
Follow up for fe0342edf4
This also drops the mkosi testuser from the wheel and systemd-journal
groups as the integration tests rely on the testuser not being to read
the full journal.
This commit is contained in:
@@ -3,10 +3,6 @@
|
|||||||
"uid": 4711,
|
"uid": 4711,
|
||||||
"disposition": "regular",
|
"disposition": "regular",
|
||||||
"enforcePasswordPolicy": false,
|
"enforcePasswordPolicy": false,
|
||||||
"memberOf": [
|
|
||||||
"wheel",
|
|
||||||
"systemd-journal"
|
|
||||||
],
|
|
||||||
"shell": "/bin/bash",
|
"shell": "/bin/bash",
|
||||||
"privileged": {
|
"privileged": {
|
||||||
"hashedPassword": ["$1$kqp7NF1f$tNnQcshPX53CSfRKTQD0R1"]
|
"hashedPassword": ["$1$kqp7NF1f$tNnQcshPX53CSfRKTQD0R1"]
|
||||||
|
|||||||
@@ -1430,7 +1430,7 @@ static int load_credential_one(
|
|||||||
|
|
||||||
if (ur)
|
if (ur)
|
||||||
STRV_FOREACH(g, ur->member_of) {
|
STRV_FOREACH(g, ur->member_of) {
|
||||||
_cleanup_free_ char *membership = strjoin(ur->user_name, ":", *g);
|
_cleanup_free_ char *membership = strjoin(ur->user_name, ":", *g, ".membership");
|
||||||
if (!membership)
|
if (!membership)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
@@ -1442,7 +1442,7 @@ static int load_credential_one(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
STRV_FOREACH(u, gr->members) {
|
STRV_FOREACH(u, gr->members) {
|
||||||
_cleanup_free_ char *membership = strjoin(*u, ":", gr->group_name);
|
_cleanup_free_ char *membership = strjoin(*u, ":", gr->group_name, ".membership");
|
||||||
if (!membership)
|
if (!membership)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user