mirror of
https://github.com/LineageOS/android_device_xiaomi_whyred.git
synced 2025-10-03 01:39:16 +02:00
whyred: Address keylayout denials
This commit is contained in:
parent
0520d2ed1f
commit
0d7c82543a
3 changed files with 9 additions and 0 deletions
|
@ -5,3 +5,6 @@ type fingerprintd_device, file_type, dev_type;
|
|||
type fingerprint_data_file, data_file_type, file_type;
|
||||
type fingerprint_persist_file, file_type;
|
||||
type sysfs_fpc_dev, sysfs_type, fs_type;
|
||||
|
||||
# Keylayout
|
||||
type vendor_keylayout_file, file_type, vendor_file_type;
|
||||
|
|
|
@ -28,3 +28,8 @@
|
|||
/sys/devices/soc/ca00000\.qcom,msm-cam/video4linux/video0(/.*)? u:object_r:sysfs_graphics:s0
|
||||
/sys/devices/soc/caa0000\.qcom,jpeg/video4linux/video1(/.*)? u:object_r:sysfs_graphics:s0
|
||||
/sys/devices/soc/c900000\.qcom,mdss_rotator/video4linux/video2(/.*)? u:object_r:sysfs_graphics:s0
|
||||
|
||||
# Keylayout
|
||||
/vendor/usr/keylayout/uinput-fpc\.kl u:object_r:vendor_keylayout_file:s0
|
||||
/vendor/usr/keylayout/uinput-goodix\.kl u:object_r:vendor_keylayout_file:s0
|
||||
/vendor/usr/keylayout/sdm660-snd-card_Button_Jack\.kl u:object_r:vendor_keylayout_file:s0
|
||||
|
|
1
sepolicy/system_server.te
Normal file
1
sepolicy/system_server.te
Normal file
|
@ -0,0 +1 @@
|
|||
allow system_server vendor_keylayout_file:file r_file_perms;
|
Loading…
Add table
Add a link
Reference in a new issue