Skip to content

Commit

Permalink
sepolicy: qcom: Add bunch of labels for devices using 'soc.0' instead…
Browse files Browse the repository at this point in the history
… of 'soc'

Change-Id: I60a732efcd369c0cb95c10b15b661b14f41b5aca
  • Loading branch information
luk1337 authored and lindwurm committed Nov 18, 2017
1 parent 7a2395f commit 56788c5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions qcom/file_contexts
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# Battery
/sys/devices(/platform)?/soc\.0/qpnp-linear-charger-[a-z0-9]+/power_supply/battery(/.*)? u:object_r:sysfs_battery_supply:s0
/sys/devices(/platform)?/soc\.0/qpnp-vm-bms-[a-z0-9]+/power_supply/bms(/.*)? u:object_r:sysfs_battery_supply:s0

# Bluetooth
/dev/smd3 u:object_r:hci_attach_dev:s0
/persist/\.bt_nv\.bin u:object_r:bluetooth_data_file:s0
/system/etc/init\.qcom\.bt\.sh u:object_r:bluetooth_loader_exec:s0

# Graphics
/sys/devices(/platform)?/soc\.0/[a-z0-9]+.qcom,mdss_mdp/qcom,mdss_fb_primary\.[0-9]+/leds/lcd-backlight(/.*)? u:object_r:sysfs_graphics:s0
/sys/devices(/platform)?/soc\.0/[a-z0-9]+.qcom,mdss_mdp/caps u:object_r:sysfs_graphics:s0

# Subsys restart
/sys/devices(/platform)?/soc\.0/[a-z0-9\.:]+,[a-z0-9\-]+/subsys[0-9]+/name u:object_r:sysfs_ssr:s0

# Time services
/data/time(/.*)? u:object_r:time_data_file:s0

0 comments on commit 56788c5

Please sign in to comment.