chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25dbe4f
)
bus-proxy: allow getpeersec() to fail
author
Daniel Mack
<daniel@zonque.org>
Thu, 9 Oct 2014 13:40:17 +0000
(15:40 +0200)
committer
Daniel Mack
<daniel@zonque.org>
Thu, 9 Oct 2014 13:41:44 +0000
(15:41 +0200)
getpeersec() will fail for non-SELinux enabled machines, so don't make that
a hard error.
src/bus-proxyd/bus-proxyd.c
patch
|
blob
|
history
diff --git
a/src/bus-proxyd/bus-proxyd.c
b/src/bus-proxyd/bus-proxyd.c
index ce571fa753ddab893c82c9ff526c7bd670301a60..4f448256791cdc0912af3f52c504baed888b1c08 100644
(file)
--- 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) {