]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: enable wall messages by default
authorLudwig Nussel <ludwig.nussel@suse.de>
Tue, 14 Dec 2021 14:55:55 +0000 (15:55 +0100)
committerLudwig Nussel <ludwig.nussel@suse.de>
Tue, 25 Jan 2022 13:52:14 +0000 (14:52 +0100)
Something calling directly into the dbus interface to request a
shutdown may not bother turning wall messages on explicitly.

This has the convenient side effect that no separate polkit auth is
required to turn on wall messages. Was annoying as having a wall
message is the default behavior of the commandline tools. Now it's
the other way around ie eg systemctl reboot --no-wall requires auth
to explicitly turn off the wall message.

src/login/logind.c

index 52b1d9503460278a689afa1ed984b972cb67e928..b24f26485aec56e69e39a3256a70399298fd6fc2 100644 (file)
@@ -54,6 +54,7 @@ static int manager_new(Manager **ret) {
         *m = (Manager) {
                 .console_active_fd = -1,
                 .reserve_vt_fd = -1,
+                .enable_wall_messages = true,
                 .idle_action_not_before_usec = now(CLOCK_MONOTONIC),
         };