chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89fa7eb
)
login: make sure /run/nologin has correct SELinux label
author
Michal Sekletar
<msekleta@redhat.com>
Fri, 4 Dec 2015 21:29:38 +0000
(22:29 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:14 +0000
(15:22 +0200)
src/login/logind-dbus.c
patch
|
blob
|
history
diff --git
a/src/login/logind-dbus.c
b/src/login/logind-dbus.c
index 82ab09be1090b15f6581da6dc51a784be5670d4f..b92430b41ca19cea74a4c2383e25a354f229af66 100644
(file)
--- a/
src/login/logind-dbus.c
+++ b/
src/login/logind-dbus.c
@@
-1865,7
+1865,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