From da6c785129bc85edf81009c7bc84b2315c334eb1 Mon Sep 17 00:00:00 2001 From: chrisl7 Date: Fri, 23 Feb 2024 14:10:21 +0530 Subject: [PATCH] sm6150-common: sepolicy: Label ro.vendor.ril.oem.wifimac property [1] - E init : Unable to set property 'ro.ril.oem.wifimac' from uid:1000 gid:1000 pid:1362: SELinux permission check failed [2] - W libc : Unable to set property "ro.ril.oem.wifimac" to "48:87:59:3f:ad:53": error code: 0x18 [3] - W /system/bin/init: type=1107 audit(0.0:61): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=ro.ril.oem.wifimac pid=1362 uid=1000 gid=1000 scontext=u:r:vendor_wcnss_service:s0 tcontext=u:object_r:radio_prop:s0 tclass=property_service permissive=0' Change-Id: I1acac81964074aeb66e2f17970407ebe9744855f Signed-off-by: chrisl7 Signed-off-by: Pranav Vashi Signed-off-by: therealmharc --- sepolicy/vendor/property_contexts | 3 +++ sepolicy/vendor/wcnss_service.te | 2 ++ 2 files changed, 5 insertions(+) diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 357756d..fc204b8 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -12,6 +12,9 @@ ro.boot.fpsensor u:object_r:vendor_fp_prop:s0 ro.hardware.fp u:object_r:vendor_fp_prop:s0 vendor.fps_hal. u:object_r:vendor_fp_prop:s0 +# RIL +ro.vendor.ril.oem.wifimac u:object_r:vendor_radio_prop:s0 + # Telephony ro.vendor.oem.imei u:object_r:vendor_deviceid_prop:s0 ro.vendor.oem.meid u:object_r:vendor_deviceid_prop:s0 diff --git a/sepolicy/vendor/wcnss_service.te b/sepolicy/vendor/wcnss_service.te index bfdfd58..2860e83 100644 --- a/sepolicy/vendor/wcnss_service.te +++ b/sepolicy/vendor/wcnss_service.te @@ -1,2 +1,4 @@ allow vendor_wcnss_service vendor_data_file:dir create_dir_perms; allow vendor_wcnss_service vendor_data_file:file create_file_perms; + +set_prop(vendor_wcnss_service, vendor_radio_prop)