diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-18 23:12:48 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-18 23:12:48 +0200 |
commit | c952c6ece28b6c0f774f823c917f458fe3424993 (patch) | |
tree | 03de0a764b996486406baeedd5721b6338334ea8 /src/service.h | |
parent | e55224ca655e6c4ec745a84ae5a051a9e6e5f74f (diff) |
service: add minimal access control logic for notifcation socket
Diffstat (limited to 'src/service.h')
-rw-r--r-- | src/service.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/service.h b/src/service.h index 521baaa1fb..7b85771a30 100644 --- a/src/service.h +++ b/src/service.h @@ -76,12 +76,22 @@ typedef enum ServiceExecCommand { _SERVICE_EXEC_COMMAND_INVALID = -1 } ServiceExecCommand; +typedef enum NotifyAccess { + NOTIFY_NONE, + NOTIFY_ALL, + NOTIFY_MAIN, + _NOTIFY_ACCESS_MAX, + _NOTIFY_ACCESS_INVALID = -1 +} NotifyAccess; + struct Service { Meta meta; ServiceType type; ServiceRestart restart; + NotifyAccess notify_access; + /* If set we'll read the main daemon PID from this file */ char *pid_file; @@ -147,4 +157,7 @@ ServiceType service_type_from_string(const char *s); const char* service_exec_command_to_string(ServiceExecCommand i); ServiceExecCommand service_exec_command_from_string(const char *s); +const char* notify_access_to_string(NotifyAccess i); +NotifyAccess notify_access_from_string(const char *s); + #endif |