sepolicy: gs101: allows pixelstat to access audio metrics nodes am: 66634d4d20
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14255523 Change-Id: If94b15e8cee4d025b5959ec3f160306b29528f4e
This commit is contained in:
commit
abd2189b79
6 changed files with 22 additions and 0 deletions
4
whitechapel/vendor/google/device.te
vendored
4
whitechapel/vendor/google/device.te
vendored
|
@ -56,3 +56,7 @@ type aoc_device, dev_type;
|
|||
|
||||
# Fingerprint device
|
||||
type fingerprint_device, dev_type;
|
||||
|
||||
# AMCS device
|
||||
type amcs_device, dev_type;
|
||||
|
||||
|
|
3
whitechapel/vendor/google/file.te
vendored
3
whitechapel/vendor/google/file.te
vendored
|
@ -197,3 +197,6 @@ type sysfs_lhbm, sysfs_type, fs_type, mlstrustedobject;
|
|||
|
||||
# UWB vendor
|
||||
type uwb_vendor_data_file, file_type, data_file_type, app_data_file_type;
|
||||
|
||||
# PixelStats_vendor
|
||||
type sysfs_pixelstats, fs_type, sysfs_type;
|
||||
|
|
1
whitechapel/vendor/google/file_contexts
vendored
1
whitechapel/vendor/google/file_contexts
vendored
|
@ -315,6 +315,7 @@
|
|||
/dev/acd-debug u:object_r:aoc_device:s0
|
||||
/dev/acd-audio_tap[0-9]* u:object_r:aoc_device:s0
|
||||
/dev/acd-audio_dcdoff_ref u:object_r:aoc_device:s0
|
||||
/dev/amcs u:object_r:amcs_device:s0
|
||||
|
||||
# Trusty
|
||||
/vendor/bin/securedpud.slider u:object_r:securedpud_slider_exec:s0
|
||||
|
|
9
whitechapel/vendor/google/genfs_contexts
vendored
9
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -285,3 +285,12 @@ genfscon sysfs /devices/platform/wlan/sscoredump/sscd_wlan/report_count
|
|||
|
||||
# mediacodec
|
||||
genfscon sysfs /devices/platform/mfc/video4linux/video u:object_r:sysfs_video:s0
|
||||
|
||||
# pixelstat_vendor
|
||||
genfscon sysfs /devices/platform/audiometrics/codec_state u:object_r:sysfs_pixelstats:s0
|
||||
genfscon sysfs /devices/platform/audiometrics/hs_codec_state u:object_r:sysfs_pixelstats:s0
|
||||
genfscon sysfs /devices/platform/audiometrics/speaker_impedance u:object_r:sysfs_pixelstats:s0
|
||||
genfscon sysfs /devices/platform/audiometrics/speaker_excursion u:object_r:sysfs_pixelstats:s0
|
||||
genfscon sysfs /devices/platform/audiometrics/speaker_heartbeat u:object_r:sysfs_pixelstats:s0
|
||||
genfscon sysfs /devices/platform/audiometrics/speaker_temp u:object_r:sysfs_pixelstats:s0
|
||||
|
||||
|
|
|
@ -14,6 +14,10 @@ allow hal_audio_default aoc_device:chr_file rw_file_perms;
|
|||
|
||||
allow hal_audio_default hal_audio_ext_hwservice:hwservice_manager { find add };
|
||||
|
||||
allow hal_audio_default amcs_device:file rw_file_perms;
|
||||
allow hal_audio_default amcs_device:chr_file rw_file_perms;
|
||||
allow hal_audio_default sysfs_pixelstats:file rw_file_perms;
|
||||
|
||||
#allow access to DMABUF Heaps for AAudio API
|
||||
allow hal_audio_default dmabuf_heap_device:chr_file r_file_perms;
|
||||
|
||||
|
|
|
@ -14,3 +14,4 @@ binder_use(pixelstats_vendor);
|
|||
allow pixelstats_vendor fwk_stats_service:service_manager find;
|
||||
|
||||
allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;
|
||||
allow pixelstats_vendor sysfs_pixelstats:file r_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue