Merge "Support touch sepolicy for spi20" into main
This commit is contained in:
commit
f61d73580b
5 changed files with 28 additions and 0 deletions
2
touch/nvt/nvt-spi20.mk
Normal file
2
touch/nvt/nvt-spi20.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/nvt/sepolicy
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/nvt/sepolicy-spi20
|
8
touch/nvt/sepolicy-spi20/genfs_contexts
Normal file
8
touch/nvt/sepolicy-spi20/genfs_contexts
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Touch
|
||||||
|
genfscon sysfs /devices/platform/111d0000.spi/spi_master/spi20/spi20.0 u:object_r:sysfs_touch:s0
|
||||||
|
|
||||||
|
# System suspend wakeup files
|
||||||
|
genfscon sysfs /devices/platform/111d0000.spi/spi_master/spi20/spi20.0/power_supply/nvt-pen-battery/wakeup u:object_r:sysfs_wakeup:s0
|
||||||
|
genfscon sysfs /devices/platform/111d0000.spi/spi_master/spi20/spi20.0/power_supply/USI_Stylus_Battery/wakeup u:object_r:sysfs_wakeup:s0
|
||||||
|
genfscon sysfs /devices/platform/111d0000.spi/spi_master/spi20/spi20.0/input/input2/wakeup u:object_r:sysfs_wakeup:s0
|
||||||
|
genfscon sysfs /devices/platform/111d0000.spi/spi_master/spi20/spi20.0/wakeup u:object_r:sysfs_wakeup:s0
|
|
@ -1 +1,2 @@
|
||||||
type sysfs_touch, sysfs_type, fs_type;
|
type sysfs_touch, sysfs_type, fs_type;
|
||||||
|
type proc_touch, proc_type, fs_type;
|
||||||
|
|
12
touch/nvt/sepolicy/genfs_contexts
Normal file
12
touch/nvt/sepolicy/genfs_contexts
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
genfscon proc /nvt_baseline u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_cc_uniformity u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_diff u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_fw_update u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_fw_version u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_heatmap u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_pen_1d_diff u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_pen_2d_baseline u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_pen_2d_diff u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_pen_2d_raw u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_raw u:object_r:proc_touch:s0
|
||||||
|
genfscon proc /nvt_selftest u:object_r:proc_touch:s0
|
5
touch/nvt/sepolicy/vendor_init.te
Normal file
5
touch/nvt/sepolicy/vendor_init.te
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
allow vendor_init sysfs_touch:dir r_dir_perms;
|
||||||
|
allow vendor_init sysfs_touch:file rw_file_perms;
|
||||||
|
allow vendor_init proc_touch:dir r_dir_perms;
|
||||||
|
allow vendor_init proc_touch:file rw_file_perms;
|
||||||
|
set_prop(vendor_init, gesture_prop)
|
Loading…
Add table
Add a link
Reference in a new issue