gps: allow gnssd set gps property and read rild 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
avc: denied { read } for name="u:object_r:vendor_rild_prop:s0" dev="tmpfs" ino=422 scontext=u:r:gnssd:s0 tcontext=u:object_r:vendor_rild_prop:s0 tclass=file permissive=0
avc: denied { open } for path="/dev/__properties__/u:object_r:vendor_rild_prop:s0" dev="tmpfs" ino=414 scontext=u:r:gnssd:s0 tcontext=u:object_r:vendor_rild_prop:s0 tclass=file permissive=0
avc: denied { getattr } for path="/dev/__properties__/u:object_r:vendor_rild_prop:s0" dev="tmpfs" ino=414 scontext=u:r:gnssd:s0 tcontext=u:object_r:vendor_rild_prop:s0 tclass=file permissive=0
avc: denied { map } for path="/dev/__properties__/u:object_r:vendor_rild_prop:s0" dev="tmpfs" ino=414 scontext=u:r:gnssd:s0 tcontext=u:object_r:vendor_rild_prop:s0 tclass=file permissive=0
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: 326493553
Bug: 320577795
Bug: 346672615
Test: no avc denied error
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:44e54aee9fac0cd0ea70368c4bd408b5618982db)
Merged-In: I3f56acd12a4ab98bd5595c25098b544c14fbf25c
Change-Id: I3f56acd12a4ab98bd5595c25098b544c14fbf25c
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
aded75edb2
commit
1ea2cd5f49
8
vendor/gnssd.te
vendored
8
vendor/gnssd.te
vendored
@@ -26,5 +26,11 @@ 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)
|
||||
|
||||
# Read RIL property
|
||||
get_prop(gnssd, vendor_rild_prop)
|
||||
|
||||
# Read modme state
|
||||
allow gnssd sysfs_modem_state:file r_file_perms;
|
||||
allow gnssd sysfs_modem_state:file r_file_perms;
|
||||
|
||||
Reference in New Issue
Block a user