summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2018-09-26 23:35:50 +0300
committerJulian Veit <claymore1298@gmail.com>2019-01-26 09:49:10 +0100
commitea4408560d83cbd7d5d4e578e024c50f1072e56b (patch)
tree119074feea48555dce6d5afbc2e28fe9103e0e97
parentbdded9e686bfcc7259809336626bf3bfe0700526 (diff)
common: grant netmgrd access to sysfs_net nodes
* Such as scanning /sys/class/net and writing to /sys/devices/virtual/net/rmnet_ipa0/queues/rx-0/rps_cpus Change-Id: I5860694ed6fa5b7b1ac3ca72594c62ddc1d75129 Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
-rw-r--r--common/netmgrd.te3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/netmgrd.te b/common/netmgrd.te
index 1aa1ffd..714f541 100644
--- a/common/netmgrd.te
+++ b/common/netmgrd.te
@@ -49,7 +49,8 @@ unix_socket_connect(netmgrd, cnd, cnd);
qmux_socket(netmgrd);
#Allow writing of ipv6 network properties
-allow netmgrd { proc_net sysfs }:file rw_file_perms;
+allow netmgrd { proc_net sysfs_net }:file rw_file_perms;
+allow netmgrd sysfs_net:dir r_dir_perms;
#Allow address configuration
#Allow setting of DNS and GW Android properties