bus-proxy: allow getpeersec() to fail

getpeersec() will fail for non-SELinux enabled machines, so don't make that
a hard error.
This commit is contained in:
Daniel Mack 2014-10-09 15:40:17 +02:00
parent 25dbe4f50f
commit 7ff3bb4e47
1 changed files with 1 additions and 5 deletions

View File

@ -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) {