From 69ed32cbccbec9d613447cb64e9d7b1ffa11ce3c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 10 Dec 2008 14:17:02 -0500 Subject: Add syslog of security denials and configuration file reloads We need to start logging denials so that they become more easily trackable and debuggable. --- bus/config-parser-common.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bus/config-parser-common.c') diff --git a/bus/config-parser-common.c b/bus/config-parser-common.c index 6e4bb701..ce590861 100644 --- a/bus/config-parser-common.c +++ b/bus/config-parser-common.c @@ -114,6 +114,10 @@ bus_config_parser_element_name_to_type (const char *name) { return ELEMENT_ASSOCIATE; } + else if (strcmp (name, "syslog") == 0) + { + return ELEMENT_SYSLOG; + } return ELEMENT_NONE; } @@ -162,7 +166,9 @@ bus_config_parser_element_type_to_name (ElementType type) return "selinux"; case ELEMENT_ASSOCIATE: return "associate"; - } + case ELEMENT_SYSLOG: + return "syslog"; + } _dbus_assert_not_reached ("bad element type"); -- cgit