summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-29 11:52:22 +0100
committerKay Sievers <kay@vrfy.org>2013-11-29 11:52:22 +0100
commit76037baee04c262f5d02a9c43ec9110c82196f36 (patch)
treeef95a093d245acb292237393e02fdb0c1bf73b0e /src/libsystemd-bus
parent27df44a2c6344da89885dfabac611e5df77b620e (diff)
bus: creds - ignore EINVAL when acessing the (inactive) LSM /proc interface
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/bus-creds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-creds.c b/src/libsystemd-bus/bus-creds.c
index 5ca70ccafa..454aeffb51 100644
--- a/src/libsystemd-bus/bus-creds.c
+++ b/src/libsystemd-bus/bus-creds.c
@@ -599,7 +599,7 @@ int bus_creds_add_more(sd_bus_creds *c, uint64_t mask, pid_t pid, pid_t tid) {
p = procfs_file_alloca(pid, "attr/current");
r = read_one_line_file(p, &c->label);
- if (r < 0 && r != -ENOENT)
+ if (r < 0 && r != -ENOENT && r != -EINVAL)
return r;
else if (r >= 0)
c->mask |= SD_BUS_CREDS_SELINUX_CONTEXT;