From 3b682abda5b0d3a55a55d13ffc8b85bd9040a325 Mon Sep 17 00:00:00 2001 From: Shinru Han Date: Mon, 26 Feb 2024 02:57:50 +0000 Subject: [PATCH] Allow gnssd set gps property avc: denied { write } for name="property_service" dev="tmpfs" ino=837 scontext=u:r:gnssd:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 Bug: 320577795 Test: on-device Change-Id: I77c02d9754c8ccd66d8cc889fd361de0fc20e09d --- gps/lsi/sepolicy/gnssd.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gps/lsi/sepolicy/gnssd.te b/gps/lsi/sepolicy/gnssd.te index 8450253..42c974e 100644 --- a/gps/lsi/sepolicy/gnssd.te +++ b/gps/lsi/sepolicy/gnssd.te @@ -25,3 +25,6 @@ get_prop(gnssd, bootanim_system_prop) allow gnssd sysfs_soc:file r_file_perms; allow gnssd sysfs_gps:file rw_file_perms; + +# Allow gnssd to set GPS property +set_prop(gnssd, vendor_gps_prop)