summaryrefslogtreecommitdiff
path: root/sepolicy/te_macros
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/te_macros')
-rw-r--r--sepolicy/te_macros9
1 files changed, 9 insertions, 0 deletions
diff --git a/sepolicy/te_macros b/sepolicy/te_macros
new file mode 100644
index 0000000..136d928
--- /dev/null
+++ b/sepolicy/te_macros
@@ -0,0 +1,9 @@
+# rw_dir_file(domain, type)
+# Allow the specified domain to read and write directories, files
+# and symbolic links of the specified type.
+define(`rw_dir_file', `
+allow $1 $2:dir rw_dir_perms;
+allow $1 $2:{ file lnk_file } rw_file_perms;
+')
+
+