mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
core: correct SELinux label of service credential directory
Label the service root credential directory so write_credential() will create entries with the label of their parent directory. Resolves: #21134
This commit is contained in:
parent
f4ae986649
commit
e3a0a862f6
@ -2819,6 +2819,8 @@ static int setup_credentials_internal(
|
||||
assert(!must_mount || workspace_mounted > 0);
|
||||
where = workspace_mounted ? workspace : final;
|
||||
|
||||
(void) label_fix_container(where, final, 0);
|
||||
|
||||
r = acquire_credentials(context, params, unit, where, uid, workspace_mounted);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user