From: Sven Eden Date: Thu, 29 Jun 2017 08:03:32 +0000 (+0200) Subject: Prep v231.3: No authorization for setting the wall message. X-Git-Tag: v231.3~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b2b26ba0d92656fa06767a58d30701d1f57a7e58;hp=e194a8049eaf9a86c16d1d3d31a3331255b39bc7;p=elogind.git Prep v231.3: No authorization for setting the wall message. elogind only calls this when shutting down, rebooting or cancelling a pending shutdown/reboot. Authorization is already needed there, so do not question the user twice, just because they forgot to sudo. --- diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 4b59d6e96..26b6c3a92 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -2450,6 +2450,7 @@ static int method_set_wall_message( if (r < 0) return r; +#if 0 /// elogind only calls this for shutdown/reboot, which already needs authorization. r = bus_verify_polkit_async(message, CAP_SYS_ADMIN, "org.freedesktop.login1.set-wall-message", @@ -2462,6 +2463,7 @@ static int method_set_wall_message( return r; if (r == 0) return 1; /* Will call us back */ +#endif // 0 if (isempty(wall_message)) m->wall_message = mfree(m->wall_message);