mkdir: append _label to all mkdir() calls that explicitly set the selinux context

This commit is contained in:
Kay Sievers
2012-05-31 12:40:20 +02:00
parent 051d68786b
commit d2e54fae5c
39 changed files with 74 additions and 69 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ int ask_password_agent(
sigset_add_many(&mask, SIGINT, SIGTERM, -1);
assert_se(sigprocmask(SIG_BLOCK, &mask, &oldmask) == 0);
mkdir_p("/run/systemd/ask-password", 0755);
mkdir_p_label("/run/systemd/ask-password", 0755);
u = umask(0022);
fd = mkostemp(temp, O_CLOEXEC|O_CREAT|O_WRONLY);