aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'policy/modules/services/watchdog.if')
-rw-r--r--policy/modules/services/watchdog.if36
1 files changed, 36 insertions, 0 deletions
diff --git a/policy/modules/services/watchdog.if b/policy/modules/services/watchdog.if
new file mode 100644
index 00000000..b0fe9221
--- /dev/null
+++ b/policy/modules/services/watchdog.if
@@ -0,0 +1,36 @@
+## <summary>Software watchdog.</summary>
+
+########################################
+## <summary>
+## All of the rules required to
+## administrate an watchdog environment.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+## <param name="role">
+## <summary>
+## Role allowed access.
+## </summary>
+## </param>
+## <rolecap/>
+#
+interface(`watchdog_admin',`
+ gen_require(`
+ type watchdog_t, watchdog_initrc_exec_t, watchdog_log_t;
+ type watchdog_var_run_t;
+ ')
+
+ allow $1 watchdog_t:process { ptrace signal_perms };
+ ps_process_pattern($1, watchdog_t)
+
+ init_startstop_service($1, $2, watchdog_t, watchdog_initrc_exec_t)
+
+ logging_search_logs($1)
+ admin_pattern($1, watchdog_log_t)
+
+ files_search_pids($1)
+ admin_pattern($1, watchdog_var_run_t)
+')