From: Lennart Poettering Date: Tue, 12 Apr 2011 18:27:05 +0000 (+0200) Subject: socket: try creating a socket under our own identity if we have no perms to consult... X-Git-Tag: v25~64 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7444edaf768ae3dda13c42d8fe26f78b4e63e38;p=systemd socket: try creating a socket under our own identity if we have no perms to consult the selinux database --- diff --git a/src/socket.c b/src/socket.c index a8f8dc3a..01af34c1 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; }