summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2015-12-04 22:29:38 +0100
committerMichal Sekletar <msekleta@redhat.com>2015-12-04 22:29:38 +0100
commit716cff4b459017028ddb4460cdfdcd09acb36dff (patch)
tree3db5f441f2f1e6983d5d3bc6fe1a2a9b5fb8a2d3 /src
parentea4e6292af593b3b631560ac5139ad1f7442d881 (diff)
login: make sure /run/nologin has correct SELinux label
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index d0875cf930..c1643cf41a 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -1820,7 +1820,7 @@ static int nologin_timeout_handler(
log_info("Creating /run/nologin, blocking further logins...");
- r = write_string_file("/run/nologin", "System is going down.", WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC);
+ r = write_string_file_atomic_label("/run/nologin", "System is going down.");
if (r < 0)
log_error_errno(r, "Failed to create /run/nologin: %m");
else