chiark / gitweb /
socket: try creating a socket under our own identity if we have no perms to consult...
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2011 18:27:05 +0000 (20:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2011 18:27:05 +0000 (20:27 +0200)
src/socket.c

index a8f8dc3..01af34c 100644 (file)
@@ -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;
                         }