Browse Source

owncloud: add policy module

Helmut Pozimski 4 years ago
parent
commit
160bf208a7
2 changed files with 18 additions and 0 deletions
  1. 1 0
      owncloud.fc
  2. 17 0
      owncloud.te

+ 1 - 0
owncloud.fc

@@ -0,0 +1 @@
+/usr/local/bin/owncloud-cron.sh	--	gen_context(system_u:object_r:owncloud_exec_t,s0)

+ 17 - 0
owncloud.te

@@ -0,0 +1,17 @@
+policy_module(owncloud, 0.0.1)
+
+########################################
+#
+# Declarations
+#
+
+attribute_role owncloud_roles;
+
+type owncloud_t;
+type owncloud_exec_t;
+init_system_domain(owncloud_t, owncloud_exec_t)
+
+optional_policy(`
+        cron_system_entry(owncloud_t, owncloud_exec_t)
+')
+