Add apparmor element support to bus config parsing
authorTyler Hicks <tyhicks@canonical.com>
Tue, 11 Feb 2014 01:02:04 +0000 (19:02 -0600)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 18 Feb 2015 17:04:00 +0000 (17:04 +0000)
commit06033cb20fb6b33fc26c2ef3f5bec1bf75596e34
tree548ba7b8c62f81ab3663e6753fa1fcd073a15dba
parentf62bff5bca2c187262a550f6f0a0c2a662adaaf6
Add apparmor element support to bus config parsing

The <apparmor> element can contain a single mode attribute that has one
of three values:

 "enabled"
 "disabled"
 "required"

"enabled" means that kernel support is autodetected and, if available,
AppArmor mediation occurs in dbus-daemon. If kernel support is not
detected, mediation is disabled. "disabled" means that mediation does
not occur. "required" means that kernel support must be detected for
dbus-daemon to start.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75113
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/Makefile.am
bus/apparmor.c [new file with mode: 0644]
bus/apparmor.h [new file with mode: 0644]
bus/config-parser-common.c
bus/config-parser-common.h
bus/config-parser.c
bus/session.conf.in
bus/system.conf.in
cmake/bus/CMakeLists.txt