Browse Source

porticron: add policy module

Helmut Pozimski 4 years ago
parent
commit
a491d1986f
2 changed files with 17 additions and 0 deletions
  1. 1 0
      porticron.fc
  2. 16 0
      porticron.te

+ 1 - 0
porticron.fc

@@ -0,0 +1 @@
+/usr/sbin/porticron	--	gen_context(system_u:object_r:porticron_exec_t,s0)

+ 16 - 0
porticron.te

@@ -0,0 +1,16 @@
+policy_module(porticron, 0.0.1)
+
+########################################
+#
+# Declarations
+#
+
+attribute_role porticron_roles;
+
+type porticron_t;
+type porticron_exec_t;
+init_system_domain(porticron_t, porticron_exec_t)
+
+optional_policy(`
+        cron_system_entry(porticron_t, porticron_exec_t)
+')