mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user