diff options
author | Avijit Kanti Das <avijitnsec@codeaurora.org> | 2014-12-08 14:03:03 -0800 |
---|---|---|
committer | Mahesh Sivasubramanian <msivasub@codeaurora.org> | 2014-12-15 23:30:24 -0700 |
commit | 46bf53185279a45c8562acc9cb6d8112df571190 (patch) | |
tree | b1257c5e488f027028d91921a22a8cb20cc1a4a1 /common | |
parent | 76af6c79f100cf8fb43f682e3b80f59d83ab7de0 (diff) | |
download | android_device_qcom_sepolicy-46bf53185279a45c8562acc9cb6d8112df571190.tar.gz android_device_qcom_sepolicy-46bf53185279a45c8562acc9cb6d8112df571190.tar.bz2 android_device_qcom_sepolicy-46bf53185279a45c8562acc9cb6d8112df571190.zip |
Seandroid: Add policy for energy-awareness.
Add policies for energy-awareness service
Change-Id: I177a8acd4773eb0e8a567437ad3373c7420ebe99
Diffstat (limited to 'common')
-rwxr-xr-x | common/device.te | 3 | ||||
-rwxr-xr-x | common/energyawareness.te | 13 | ||||
-rw-r--r-- | common/file_contexts | 2 |
3 files changed, 18 insertions, 0 deletions
diff --git a/common/device.te b/common/device.te index 6823ecb6..4c0aa2c2 100755 --- a/common/device.te +++ b/common/device.te @@ -78,3 +78,6 @@ type mmc_block_device, dev_type; #Define Gadget serial device type gadget_serial_device, dev_type; + +#energy-awareness device +type pta_device, dev_type; diff --git a/common/energyawareness.te b/common/energyawareness.te new file mode 100755 index 00000000..c3c895f2 --- /dev/null +++ b/common/energyawareness.te @@ -0,0 +1,13 @@ +type energyawareness, domain; +type energyawareness_exec, exec_type, file_type; + +#started by init +init_daemon_domain(energyawareness) + +#allow access to pta and uio interface +allow energyawareness pta_device:chr_file rw_file_perms; +allow energyawareness uio_device:chr_file rw_file_perms; + +allow energyawareness self:netlink_kobject_uevent_socket create_socket_perms; + +allow energyawareness self:capability net_admin; diff --git a/common/file_contexts b/common/file_contexts index 5b7321b6..1e623c0b 100644 --- a/common/file_contexts +++ b/common/file_contexts @@ -52,6 +52,7 @@ /dev/dpl_ctrl u:object_r:rmnet_device:s0 /dev/wcnss_ctrl u:object_r:wcnss_device:s0 /dev/wcnss_wlan u:object_r:wcnss_device:s0 +/dev/pta u:object_r:pta_device:s0 ################################### # Dev socket nodes @@ -152,6 +153,7 @@ /system/bin/garden_app u:object_r:location_exec:s0 /system/bin/gpsone_daemon u:object_r:location_exec:s0 /system/vendor/bin/slim_ap_daemon u:object_r:location_exec:s0 +/system/bin/energy-awareness u:object_r:energyawareness_exec:s0 /system/vendor/bin/qti u:object_r:qti_exec:s0 /system/bin/wcnss_service u:object_r:wcnss_service_exec:s0 |