aboutsummaryrefslogtreecommitdiff
path: root/sepolicy/tiny_mkswap.te
diff options
context:
space:
mode:
authorMister Oyster <oysterized@gmail.com>2017-01-02 12:44:35 +0100
committerMister Oyster <oysterized@gmail.com>2017-01-02 12:44:35 +0100
commita184d985bf43d3fe6eeba971bc6b32f79ea38b37 (patch)
tree6f6e56e090777cc149bc1ab39e5987cc2b03e867 /sepolicy/tiny_mkswap.te
initial releasecm-13.0
Diffstat (limited to 'sepolicy/tiny_mkswap.te')
-rw-r--r--sepolicy/tiny_mkswap.te29
1 files changed, 29 insertions, 0 deletions
diff --git a/sepolicy/tiny_mkswap.te b/sepolicy/tiny_mkswap.te
new file mode 100644
index 0000000..103fa6d
--- /dev/null
+++ b/sepolicy/tiny_mkswap.te
@@ -0,0 +1,29 @@
+# ==============================================
+# Policy File of /system/bin/tiny_mkswap Executable File
+
+
+# ==============================================
+# Type Declaration
+# ==============================================
+
+type tiny_mkswap_exec , exec_type, file_type;
+type tiny_mkswap ,domain;
+
+# ==============================================
+# Android Policy Rule
+# ==============================================
+
+# ==============================================
+# NSA Policy Rule
+# ==============================================
+
+# ==============================================
+# MTK Policy Rule
+# ==============================================
+
+# Date : WK14.34
+# Operation : Migration
+# Purpose : Add new swap areas
+init_daemon_domain(tiny_mkswap)
+allow tiny_mkswap zram0_device:blk_file { getattr read write open ioctl };
+allow tiny_mkswap enableswap:fd use;