From 0cdd69e43fe53cbd524b4dab3be9ba5c82a005b0 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 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/bus/config-parser.c b/bus/config-parser.c index f943255..8b67c94 100644 --- a/bus/config-parser.c +++ b/bus/config-parser.c @@ -1055,6 +1055,8 @@ 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.\n"); } else { @@ -3551,4 +3553,3 @@ bus_config_parser_test (const DBusString *test_data_dir) } #endif /* DBUS_BUILD_TESTS */ - -- 1.7.6