]> granicus.if.org Git - psmisc/commit
pstree: add apparmor support
authorGeorgia Garcia <georgia.garcia@canonical.com>
Thu, 9 Sep 2021 18:30:40 +0000 (18:30 +0000)
committerGeorgia Garcia <georgia.garcia@canonical.com>
Mon, 18 Oct 2021 21:43:56 +0000 (21:43 +0000)
commit3e0151348587edf7ba64a11ad2bc0b2c49dfb20d
tree8b25dd7c248c181041e3a6ba59ca3311d202e833
parentf9ae9d2c32b3c3488a4f0088b2c6ac1c6c5cb953
pstree: add apparmor support

While the current fallback method might obtain the correct AppArmor
context by checking /proc/self/attr/current, it is not guaranteed that
this value will be the context attributed by AppArmor. The current
interface being used upstream is /proc/self/attr/apparmor/current, and
that can be obtained by using the AppArmor library functions.

In order to avoid link time dependencies, we are loading the apparmor
library dynamically, just like is currently done by SELinux.

Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
configure.ac
src/pstree.c