author | Dan Zhang <danielzhang@google.com> | 2018-11-19 17:43:16 (GMT) |
---|---|---|
committer | Android Partner Code Review <android-gerrit-partner@google.com> | 2018-11-19 17:43:16 (GMT) |
commit | 9b43f1db04a0eee0f1de9862b954d399b4573428 (patch) | |
tree | 58b6dd03789fcfdeb104262b3d888b3672b238df | |
parent | 98707427827077bf4f8a7116e7a531d59aae8440 (diff) | |
parent | 791aae81c14a1a3afa3d08d11598ac5cd16f4fc5 (diff) | |
download | common-9b43f1db04a0eee0f1de9862b954d399b4573428.zip common-9b43f1db04a0eee0f1de9862b954d399b4573428.tar.gz common-9b43f1db04a0eee0f1de9862b954d399b4573428.tar.bz2 |
Merge "Add policiy for /sys/class/extcon hdmi files" into p-tv-dev
-rw-r--r-- | sepolicy/file_contexts | 1 | ||||
-rw-r--r-- | sepolicy/system_server.te | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index cce6cb9..4d145dc 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -164,6 +164,7 @@ /sys/devices/virtual/remote/amremote(/.*)? u:object_r:sysfs_remote:s0 /sys/devices/virtual/amhdmitx/amhdmitx0/hdmi_audio/state u:object_r:sysfs_hdmi:s0 +/sys/devices/virtual/amhdmitx/amhdmitx0/hdmi/state u:object_r:sysfs_hdmi:s0 /sys/devices/virtual/thermal/thermal_zone0/mode u:object_r:sysfs_display:s0 /acct/uid/cgroup.procs u:object_r:reco_file:s0 diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te index 7d7e89d..84ab0ac 100644 --- a/sepolicy/system_server.te +++ b/sepolicy/system_server.te @@ -28,7 +28,9 @@ allow system_server wifi_data_file:file { read create }; allow system_server sysfs:file { getattr }; allow system_server sysfs_rtc:file { read write open getattr }; -allow system_server sysfs_hdmi:file { read write open getattr }; + +r_dir_file(system_server, sysfs_hdmi) +allow system_server sysfs_hdmi:file write; allow system_server sysfs_display:lnk_file { read write open getattr }; allow system_server sysfs_display:file { read write open getattr }; |