diff options
author | Kay Sievers <kay@vrfy.org> | 2012-05-31 12:40:20 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-05-31 12:40:20 +0200 |
commit | d2e54fae5ca7a0f71b5ac8b356a589ff0a09ea0a (patch) | |
tree | b1a4773022e0904f6e023bcff832d897ed46c893 /src/tty-ask-password-agent | |
parent | 051d68786bd5bfe87e7cc0c1d68ec4be83eb662a (diff) |
mkdir: append _label to all mkdir() calls that explicitly set the selinux context
Diffstat (limited to 'src/tty-ask-password-agent')
-rw-r--r-- | src/tty-ask-password-agent/tty-ask-password-agent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c index de843b437e..7f537c2740 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -446,7 +446,7 @@ static int wall_tty_block(void) { if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(devnr), minor(devnr)) < 0) return -ENOMEM; - mkdir_parents(p, 0700); + mkdir_parents_label(p, 0700); mkfifo(p, 0600); fd = open(p, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY); @@ -570,7 +570,7 @@ static int watch_passwords(void) { tty_block_fd = wall_tty_block(); - mkdir_p("/run/systemd/ask-password", 0755); + mkdir_p_label("/run/systemd/ask-password", 0755); if ((notify = inotify_init1(IN_CLOEXEC)) < 0) { r = -errno; |