• Tyler Hicks's avatar
    Store AppArmor label of bus during initialization · e8b0248e
    Tyler Hicks authored
    During dbus-daemon initialization, the AppArmor confinement context
    should be stored for later use when checks are to be done on messages
    to/from the bus itself.
    
    AppArmor confinement contexts are documented in aa_getcon(2). They
    contain a confinement string and a mode string. The confinement string
    is typically the name of the AppArmor profile confining a given process.
    The mode string gives the current enforcement mode of the process
    confinement. For example, it may indicate that the confinement should be
    enforced or it may indicate that the confinement should allow all
    actions with the caveat that actions which would be denied should be
    audited.
    
    It is important to note that libapparmor mallocs a single buffer to
    store the con and mode strings and separates them with a NUL terminator.
    Because of this, only con should be freed.
    
    Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75113Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
    [smcv: use BUS_SET_OOM]
    [smcv: dbus_set_error doesn't need extra newlines]
    Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
    Reviewed-by: default avatarTyler Hicks <tyhicks@canonical.com>
    e8b0248e
Name
Last commit
Last update
bus Loading commit data...
cmake Loading commit data...
dbus Loading commit data...
doc Loading commit data...
m4 Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
Doxyfile.in Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
Makefile.cvs Loading commit data...
NEWS Loading commit data...
NEWS.pre-1-0 Loading commit data...
NEWS.pre-1-2 Loading commit data...
README Loading commit data...
README.cmake Loading commit data...
README.cygwin Loading commit data...
README.launchd Loading commit data...
README.valgrind Loading commit data...
README.win Loading commit data...
README.wince Loading commit data...
autogen.sh Loading commit data...
cleanup-man-pages.sh Loading commit data...
configure.ac Loading commit data...
dbus-1-uninstalled.pc.in Loading commit data...
dbus-1.pc.in Loading commit data...