diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-05 09:55:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-05 09:55:53 +0200 |
commit | 3900e5fdff688dc3c273f177d9d913b7389d5561 (patch) | |
tree | 7752c89ee7d52087e03fc915594ee54c38bc32cb /src/core/socket.h | |
parent | a8330cd118993c20629565684144e0cc0e2edabe (diff) |
socket: add SocketUser= and SocketGroup= for chown()ing sockets in the file system
This is relatively complex, as we cannot invoke NSS from PID 1, and thus
need to fork a helper process temporarily.
Diffstat (limited to 'src/core/socket.h')
-rw-r--r-- | src/core/socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/socket.h b/src/core/socket.h index f6bc37df8d..39e00deea4 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -32,6 +32,7 @@ typedef struct Socket Socket; typedef enum SocketState { SOCKET_DEAD, SOCKET_START_PRE, + SOCKET_START_CHOWN, SOCKET_START_POST, SOCKET_LISTENING, SOCKET_RUNNING, @@ -48,6 +49,7 @@ typedef enum SocketState { typedef enum SocketExecCommand { SOCKET_EXEC_START_PRE, + SOCKET_EXEC_START_CHOWN, SOCKET_EXEC_START_POST, SOCKET_EXEC_STOP_PRE, SOCKET_EXEC_STOP_POST, @@ -157,6 +159,8 @@ struct Socket { char *smack; char *smack_ip_in; char *smack_ip_out; + + char *user, *group; }; /* Called from the service code when collecting fds */ |