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/shared | |
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/shared')
-rw-r--r-- | src/shared/exit-status.c | 3 | ||||
-rw-r--r-- | src/shared/exit-status.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/exit-status.c b/src/shared/exit-status.c index 208d329c1e..0a1034d8e2 100644 --- a/src/shared/exit-status.c +++ b/src/shared/exit-status.c @@ -142,6 +142,9 @@ const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) { case EXIT_RUNTIME_DIRECTORY: return "RUNTIME_DIRECTORY"; + + case EXIT_CHOWN: + return "CHOWN"; } } diff --git a/src/shared/exit-status.h b/src/shared/exit-status.h index d6bf84c698..0104c8b125 100644 --- a/src/shared/exit-status.h +++ b/src/shared/exit-status.h @@ -74,7 +74,8 @@ typedef enum ExitStatus { EXIT_PERSONALITY, /* 230 */ EXIT_APPARMOR_PROFILE, EXIT_ADDRESS_FAMILIES, - EXIT_RUNTIME_DIRECTORY + EXIT_RUNTIME_DIRECTORY, + EXIT_CHOWN, } ExitStatus; typedef enum ExitStatusLevel { |