summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2016-10-12 13:32:01 -0500
committerMisael Lopez Cruz2016-11-30 17:13:18 -0600
commit342b8c84f0ca33f24a08186e8c8de94238fa6da6 (patch)
tree8b6b2cecc1df335c92472ff819ff86dd11b61d66 /sepolicy/lad_dra7xx.te
parent1bb92e34bccd5a221b5e32c6ededf633b3678b51 (diff)
downloaddevice-ti-jacinto6evm-342b8c84f0ca33f24a08186e8c8de94238fa6da6.tar.gz
device-ti-jacinto6evm-342b8c84f0ca33f24a08186e8c8de94238fa6da6.tar.xz
device-ti-jacinto6evm-342b8c84f0ca33f24a08186e8c8de94238fa6da6.zip
jacinto6evm: sepolicy: initial sepolicy rules for lad daemon
Initial rules for lad_dra7xx daemon Change-Id: I4cff5b47bf978dc87c05bc43926b34899981eefb Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Diffstat (limited to 'sepolicy/lad_dra7xx.te')
-rw-r--r--sepolicy/lad_dra7xx.te17
1 files changed, 17 insertions, 0 deletions
diff --git a/sepolicy/lad_dra7xx.te b/sepolicy/lad_dra7xx.te
new file mode 100644
index 0000000..a5ea3a4
--- /dev/null
+++ b/sepolicy/lad_dra7xx.te
@@ -0,0 +1,17 @@
1type lad_dra7xx, domain;
2type lad_dra7xx_exec, exec_type, file_type;
3type lad_data_file, file_type, data_file_type;
4
5# Started by init
6init_daemon_domain(lad_dra7xx)
7
8# Allow access to /data/lad
9allow lad_dra7xx devpts:chr_file {read write ioctl getattr };
10allow lad_dra7xx lad_data_file:dir { create_dir_perms };
11allow lad_dra7xx lad_data_file:fifo_file { create_file_perms };
12allow lad_dra7xx self:socket { create_socket_perms };
13
14# Allow access to hwspinlock and uio device
15allow lad_dra7xx hwspinlock_dev:chr_file { rw_file_perms };
16allow lad_dra7xx uio_dev:chr_file { rw_file_perms };
17allow lad_dra7xx sysfs:file { r_file_perms };