Skip to content

Commit

Permalink
msm8998-common: add selinux rules for sysinfo
Browse files Browse the repository at this point in the history
Change-Id: I9ce09131c3aeea674fa1c3a26d2babb385631e60
  • Loading branch information
eyosen authored and csolanol committed Jan 9, 2020
1 parent 05c0f92 commit 2164162
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions sepolicy/vendor/file.te
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ type sysfs_wifi, fs_type, sysfs_type;
type debugfs_power_stats, fs_type, debugfs_type;
type nv_data_file, file_type, data_file_type;
type sysfs_inpocket, fs_type, sysfs_type;
type sysfs_device_info, fs_type, sysfs_type;
5 changes: 5 additions & 0 deletions sepolicy/vendor/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@

/sys/kernel/pocket_judge/inpocket u:object_r:sysfs_inpocket:s0

/sys/class/thermal/thermal_zone0/temp u:object_r:sysfs_device_info:s0
/sys/class/power_supply/battery/temp u:object_r:sysfs_device_info:s0
/sys/kernel/gpu/gpu_clock u:object_r:sysfs_device_info:s0
/sys/kernel/gpu/gpu_busy u:object_r:sysfs_device_info:s0

# Power supply
/sys/devices/soc/.*ssusb/power_supply/usb(/.*)? u:object_r:sysfs_usb_supply:s0
/sys/devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/main(/.*)? u:object_r:sysfs_usb_supply:s0
Expand Down
1 change: 1 addition & 0 deletions sepolicy/vendor/platform_app.te
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allow platform_app hal_ifaa_hwservice:hwservice_manager { find };
binder_call(platform_app, hal_ifaa_default)
allow platform_app sysfs_device_info:file { r_file_perms };

0 comments on commit 2164162

Please sign in to comment.