gps: fix avc denied in emergency SUPL

GNSS ds_client fails to open emergency SUPL network due to avc denied.

05-15 16:50:22.331   gps   867   867 W Loc_hal : type=1400 audit(0.0:26): avc: denied { nlmsg_readpriv } for scontext=u:r:hal_gnss_qti:s0 tcontext=u:r:hal_gnss_qti:s0 tclass=netlink_route_socket permissive=0

Bug: 155738368
Test: Emergency SUPL test
Change-Id: Ic9ce155aed10a5d199137e4a9081c0b8ccf3ee88
This commit is contained in:
Shinru Han
2020-05-21 17:55:08 +08:00
parent 39e8f5cbfa
commit e2b43873bf

View File

@@ -28,7 +28,7 @@ unix_socket_connect(hal_gnss_qti, netmgrd, netmgrd)
allow hal_gnss_qti netmgrd_socket:dir search;
allow hal_gnss_qti self:netlink_generic_socket { bind create read };
allow hal_gnss_qti self:netlink_route_socket { bind create nlmsg_read read write };
allow hal_gnss_qti self:netlink_route_socket { bind create nlmsg_read nlmsg_readpriv read write };
userdebug_or_eng(`
allow hal_gnss_qti diag_device:chr_file rw_file_perms;