Merge "Add license_note and required comment." am: 2775e7e881 am: 575e7f8b82 am: 5563c789ae
Original change: https://android-review.googlesource.com/c/device/mediatek/wembley-sepolicy/+/2012335
Change-Id: I3e9962a5e103c071af87600f3b4ac8399dcbd9ff
diff --git a/non_plat/mnld.te b/non_plat/mnld.te
index 4625b8e..17bacba 100644
--- a/non_plat/mnld.te
+++ b/non_plat/mnld.te
@@ -109,3 +109,5 @@
#Add for /nvcfg/almanac.dat
allow mnld nvcfg_file:dir w_dir_perms;
allow mnld nvcfg_file:file create_file_perms;
+
+allow mnld self:netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh };
diff --git a/non_plat/mtk_agpsd.te b/non_plat/mtk_agpsd.te
index 40abed3..c9488e0 100644
--- a/non_plat/mtk_agpsd.te
+++ b/non_plat/mtk_agpsd.te
@@ -70,3 +70,5 @@
get_prop(mtk_agpsd, vendor_mtk_gps_support_prop)
wakelock_use(mtk_agpsd)
+
+allow mtk_agpsd self:netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh };
diff --git a/non_plat/mtkrild.te b/non_plat/mtkrild.te
index 677e17f..82cc1e5 100644
--- a/non_plat/mtkrild.te
+++ b/non_plat/mtkrild.te
@@ -53,7 +53,7 @@
allow mtkrild proc_net:file w_file_perms;
# Set and get routes directly via netlink.
-allow mtkrild self:netlink_route_socket nlmsg_write;
+allow mtkrild self:netlink_route_socket { nlmsg_write bind nlmsg_readpriv nlmsg_getneigh };
# Allow read/write to devices/files
allow mtkrild mtk_radio_device:dir search;
diff --git a/non_plat/slpd.te b/non_plat/slpd.te
index cfce93b..fa3efeb 100644
--- a/non_plat/slpd.te
+++ b/non_plat/slpd.te
@@ -16,3 +16,5 @@
# mtk_agpsd will send the current SUPL profile to SLPD
allow slpd mtk_agpsd:unix_dgram_socket sendto;
+
+allow slpd self:netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh };