mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
login: make sure /run/nologin has correct SELinux label
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user