mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
core: make RuntimeDirectory honor SELinux labels
https://bugzilla.redhat.com/show_bug.cgi?id=1192726
(cherry picked from commit ca905b2fce)
Conflicts:
src/core/execute.c
This commit is contained in:
+1
-1
@@ -1512,7 +1512,7 @@ static int exec_child(ExecCommand *command,
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
err = mkdir_safe(p, context->runtime_directory_mode, uid, gid);
|
||||
err = mkdir_safe_label(p, context->runtime_directory_mode, uid, gid);
|
||||
if (err < 0) {
|
||||
*error = EXIT_RUNTIME_DIRECTORY;
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user