diff options
author | Daniel Mack <daniel@zonque.org> | 2014-10-09 15:40:17 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2014-10-09 15:41:44 +0200 |
commit | 7ff3bb4e47fe287997ba24a3b3ae719bd9043d74 (patch) | |
tree | 57e27b0898db4f251df33d1eeca13ab9274422a7 /src | |
parent | 25dbe4f50f93fb6398844ba67ea197f76adc237a (diff) |
bus-proxy: allow getpeersec() to fail
getpeersec() will fail for non-SELinux enabled machines, so don't make that
a hard error.
Diffstat (limited to 'src')
-rw-r--r-- | src/bus-proxyd/bus-proxyd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c index ce571fa753..4f44825679 100644 --- a/src/bus-proxyd/bus-proxyd.c +++ b/src/bus-proxyd/bus-proxyd.c @@ -1152,11 +1152,7 @@ int main(int argc, char *argv[]) { goto finish; } - r = getpeersec(in_fd, &peersec); - if (r < 0) { - log_error("Failed to get security creds: %s", strerror(-r)); - goto finish; - } + (void) getpeersec(in_fd, &peersec); } if (arg_drop_privileges) { |