summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-12 20:27:05 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-12 20:27:05 +0200
commita7444edaf768ae3dda13c42d8fe26f78b4e63e38 (patch)
tree59c264b1ad394f4ba9b2e8caf43dc9791472744f /src/socket.c
parent5a2b80ceb20876e80907d0b7f7915afb20f716e6 (diff)
socket: try creating a socket under our own identity if we have no perms to consult the selinux database
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c
index a8f8dc3a5e..01af34c105 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -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;
}