From cc475837887e5b132e5261d980f231f8307e0a5b Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 20 Sep 2025 00:38:46 +0100 Subject: [PATCH] sepolicy: qti: Allow touchDeamon to stop itself As seen on devices without OplusTouch support: [ 14.155867] init: Unable to set property 'ctl.stop' from uid:0 gid:0 pid:1991: Invalid permissions to perform 'stop' on 'touchDaemon' [ 14.155902] type=1107 audit(1758323930.135:13): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=ctl.stop$touchDaemon pid=1991 uid=0 gid=0 scontext=u:r:oplus_touchdaemon:s0 tcontext=u:object_r:ctl_stop_prop:s0 tclass=property_service permissive=0' Change-Id: Iacc073b0b74713c268966c69480cf02d543d395a --- sepolicy/qti/vendor/oplus_touchdaemon.te | 1 + 1 file changed, 1 insertion(+) diff --git a/sepolicy/qti/vendor/oplus_touchdaemon.te b/sepolicy/qti/vendor/oplus_touchdaemon.te index 6baf266..523391c 100644 --- a/sepolicy/qti/vendor/oplus_touchdaemon.te +++ b/sepolicy/qti/vendor/oplus_touchdaemon.te @@ -29,5 +29,6 @@ rw_dir_file(oplus_touchdaemon, proc_horae) rw_dir_file(oplus_touchdaemon, vendor_data_file) rw_dir_file(oplus_touchdaemon, vendor_proc_display) +set_prop(oplus_touchdaemon, ctl_stop_prop) set_prop(oplus_touchdaemon, system_oplus_touch_prop) set_prop(oplus_touchdaemon, vendor_oplus_touch_prop)