From 86af903968cf45496f0059cf26022845f28e4088 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 7 Aug 2009 01:51:17 +0200 Subject: [PATCH] policy: Complain whenever someone uses at_console at_console should be considered obsolete. Applications should use PolicyKit instea for verifying that a process is on the (active) console. --- bus/config-parser.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bus/config-parser.c b/bus/config-parser.c index f943255..21c41c3 100644 --- a/bus/config-parser.c +++ b/bus/config-parser.c @@ -1055,7 +1055,11 @@ start_busconfig_child (BusConfigParser *parser, { e->d.policy.gid_uid_or_at_console = t; e->d.policy.type = POLICY_CONSOLE; - } + + _dbus_system_log (DBUS_SYSTEM_LOG_INFO, + "Obsolete at_console policy used in message bus configuration file. " + "See https://bugs.freedesktop.org/39611 for more information.\n"); + } else { dbus_set_error (error, DBUS_ERROR_FAILED, @@ -3551,4 +3555,3 @@ bus_config_parser_test (const DBusString *test_data_dir) } #endif /* DBUS_BUILD_TESTS */ - -- 1.7.6