diff options
author | Ameya Thakur <ameyat@codeaurora.org> | 2014-10-01 16:32:13 -0700 |
---|---|---|
committer | Avijit Kanti Das <avijitnsec@codeaurora.org> | 2014-10-17 11:42:20 -0700 |
commit | b6947d67988e7bb8f0b5397f5a7998c6bd1f3dd0 (patch) | |
tree | 4bd8b4862ce1b754752e6ba1bcd30f93064b2f4e /common/qcomsysd.te | |
parent | 5774546c2ffd87ab9fe0a32da92357542d77b081 (diff) | |
download | android_device_qcom_sepolicy-b6947d67988e7bb8f0b5397f5a7998c6bd1f3dd0.tar.gz android_device_qcom_sepolicy-b6947d67988e7bb8f0b5397f5a7998c6bd1f3dd0.tar.bz2 android_device_qcom_sepolicy-b6947d67988e7bb8f0b5397f5a7998c6bd1f3dd0.zip |
sepolicy: Add policy files for qcomsysd
sepolicy files for qcomsysd is now included in the build.
Change-Id: Ic98e38830417f2aa4453e0dcd51a76343a86acf1
Diffstat (limited to 'common/qcomsysd.te')
-rw-r--r-- | common/qcomsysd.te | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/qcomsysd.te b/common/qcomsysd.te new file mode 100644 index 00000000..483b97bc --- /dev/null +++ b/common/qcomsysd.te @@ -0,0 +1,21 @@ +#Policy file for qcom-system-daemon +#qcomsysd = qcom-system-daemon domain +type qcomsysd, domain; +type qcomsysd_exec, exec_type, file_type; +init_daemon_domain(qcomsysd); + +#Needed for logging +allow qcomsysd smem_log_device:chr_file { open read write ioctl }; + +#Needed for handling diag commands +allow qcomsysd diag_device:chr_file { open read write ioctl }; + +#Needed to read/write cookies to the misc partition +allow qcomsysd misc_partition:blk_file { open read getattr write }; + +#Needed to access the bootselect partition +allow qcomsysd bootselect_device:blk_file { open read getattr write }; + +#Needed to get image info from socinfo +allow qcomsysd sysfs_socinfo:dir { open search read }; +allow qcomsysd sysfs_socinfo:file { open read write }; |