cm: sepolicy: Create central place for QC-specific policy
* We have a number of policy items due to changes in our BSPs or for other things which interact with the QC sepolicy. Add a place for us to store this stuff so we don't need to copy it around to every device. Change-Id: I155ca202694501d42b42e2bd703d74049d547df0
This commit is contained in:
parent
b5dbbdf9cb
commit
b5c2cf0408
3
sepolicy/qcom/bootanim.te
Normal file
3
sepolicy/qcom/bootanim.te
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
allow bootanim mpctl_socket:dir search;
|
||||||
|
unix_socket_connect(bootanim, mpctl, perfd)
|
||||||
|
unix_socket_send(bootanim, mpctl, perfd)
|
6
sepolicy/qcom/perfd.te
Normal file
6
sepolicy/qcom/perfd.te
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
allow perfd sysfs_devices_system_iosched:file rw_file_perms;
|
||||||
|
unix_socket_connect(perfd, thermal, thermal-engine)
|
||||||
|
|
||||||
|
# read mediaserver status
|
||||||
|
allow perfd mediaserver:file { read open };
|
||||||
|
|
2
sepolicy/qcom/sepolicy.mk
Normal file
2
sepolicy/qcom/sepolicy.mk
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
BOARD_SEPOLICY_DIRS += \
|
||||||
|
vendor/cm/sepolicy/qcom
|
6
sepolicy/qcom/system_server.te
Normal file
6
sepolicy/qcom/system_server.te
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# LiveDisplay access to color calibration
|
||||||
|
allow system_server pps_socket:sock_file rw_file_perms;
|
||||||
|
allow system_server mm-pp-daemon:unix_stream_socket connectto;
|
||||||
|
|
||||||
|
# Time services
|
||||||
|
allow system_server time_daemon:unix_stream_socket connectto;
|
Loading…
Reference in New Issue
Block a user