Allow vendor_init to read gesture_prop.

Logs:
07-15 04:04:39.052     1     1 I auditd  : type=1107 audit(0.0:4): uid=0
auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read
} for property=persist.sys.tap_gesture pid=0 uid=0 gid=0
scontext=u:r:vendor_init:s0 tcontext=u:object_r:gesture_prop:s0
tclass=file permissive=0'
07-15 04:04:39.087     1     1 E init    :
/vendor/etc/init/hw/init.tangorpro.rc: 48: ParseTriggers() failed:
unexported property trigger found: persist.sys.tap_gesture

Test: check Treehugger build for sepolicy.
Bug: 201610482
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I2072ce786bf9f3590487b1807672e993764cc6f0
This commit is contained in:
Super Liu 2022-07-18 10:19:19 +08:00
parent 5cc0905307
commit 834dc1b842

1
vendor/vendor_init.te vendored Normal file
View file

@ -0,0 +1 @@
get_prop(vendor_init, gesture_prop)