mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-27 06:05:24 +07:00
socket: try creating a socket under our own identity if we have no perms to consult the selinux database
This commit is contained in:
parent
5a2b80ceb2
commit
a7444edaf7
@ -774,8 +774,10 @@ static int socket_open_fds(Socket *s) {
|
||||
return r;
|
||||
|
||||
if (s->service && s->service->exec_command[SERVICE_EXEC_START])
|
||||
if ((r = label_get_socket_label_from_exe(s->service->exec_command[SERVICE_EXEC_START]->path, &label)) < 0)
|
||||
return r;
|
||||
if ((r = label_get_socket_label_from_exe(s->service->exec_command[SERVICE_EXEC_START]->path, &label)) < 0) {
|
||||
if (r != -EPERM)
|
||||
return r;
|
||||
}
|
||||
|
||||
know_label = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user