Files
android_device_qcom_sepolicy/common/untrusted_app.te
Dilip Gudlur c6a655da9c sepolicy: add appdomain permissions for perfd
Allow appdomain to access perfd.

Change-Id: I20c26842b643c49304a066a5726b9dc531d1a81e
2015-01-15 18:15:17 -08:00

19 lines
586 B
Plaintext

# access to perflock
unix_socket_send(untrusted_app, mpctl, mpdecision)
unix_socket_connect(untrusted_app, mpctl, mpdecision)
# read temp sensors
allow untrusted_app sysfs_thermal:file r_file_perms;
allow untrusted_app sysfs_thermal:lnk_file r_file_perms;
allow untrusted_app sysfs_thermal:dir r_dir_perms;
# allow apps to read battery status
allow untrusted_app sysfs_battery_supply:dir r_dir_perms;
allow untrusted_app sysfs_battery_supply:file r_file_perms;
# test apps needs to communicate with imscm
# using binder call
userdebug_or_eng(`
binder_call(untrusted_app, imscm)
')