summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-05 09:55:53 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-05 09:55:53 +0200
commit3900e5fdff688dc3c273f177d9d913b7389d5561 (patch)
tree7752c89ee7d52087e03fc915594ee54c38bc32cb /src/shared
parenta8330cd118993c20629565684144e0cc0e2edabe (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.c3
-rw-r--r--src/shared/exit-status.h3
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 {