security: rework selinux, smack, ima, apparmor detection logic
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Oct 2013 14:35:44 +0000 (16:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Oct 2013 14:35:44 +0000 (16:35 +0200)
commitd682b3a7e7c7c2941a4d3e193f1e330dbc9fae89
treef9e0c1c2af7b0756af89db0864a0708076a55144
parent0581dac2c146cef0f55841a4c136dc48409c8eaa
security: rework selinux, smack, ima, apparmor detection logic

Always cache the results, and bypass low-level security calls when the
respective subsystem is not enabled.
14 files changed:
Makefile.am
src/core/condition.c
src/core/socket.c
src/journal/journald-native.c
src/journal/journald-server.c
src/journal/journald-stream.c
src/journal/journald-syslog.c
src/shared/apparmor-util.c [new file with mode: 0644]
src/shared/apparmor-util.h [new file with mode: 0644]
src/shared/ima-util.c [new file with mode: 0644]
src/shared/ima-util.h [new file with mode: 0644]
src/shared/selinux-util.c
src/shared/smack-util.c
src/udev/udev-node.c