whyred: Address keylayout denials

This commit is contained in:
Vasishath Kaushal 2018-06-25 22:35:46 +05:30
parent 0520d2ed1f
commit 0d7c82543a
3 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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

View file

@ -0,0 +1 @@
allow system_server vendor_keylayout_file:file r_file_perms;