summaryrefslogtreecommitdiff
path: root/src/core/selinux-access.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-26 18:57:37 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-26 18:57:39 +0100
commit8fd00193803fd20bed163832ec4d0d5ba2958b87 (patch)
tree9fe9998bc631f8cb168ded1f98de271205c9629d /src/core/selinux-access.c
parent6dae84cbdda6c0547b374119960b49c9da5aa481 (diff)
core: make sure we have enough information when doing selinux decisions
Let's ask for the security relevant bits in a race-free way, and augment the rest from /proc.
Diffstat (limited to 'src/core/selinux-access.c')
-rw-r--r--src/core/selinux-access.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/selinux-access.c b/src/core/selinux-access.c
index a4694b33f3..a50dec3961 100644
--- a/src/core/selinux-access.c
+++ b/src/core/selinux-access.c
@@ -207,7 +207,8 @@ int mac_selinux_generic_access_check(
message,
SD_BUS_CREDS_PID|SD_BUS_CREDS_UID|SD_BUS_CREDS_GID|
SD_BUS_CREDS_CMDLINE|SD_BUS_CREDS_AUDIT_LOGIN_UID|
- SD_BUS_CREDS_SELINUX_CONTEXT,
+ SD_BUS_CREDS_SELINUX_CONTEXT|
+ SD_BUS_CREDS_AUGMENT /* get more bits from /proc */,
&creds);
if (r < 0)
goto finish;