Skip to content
Snippets Groups Projects
Commit cd175aa0 authored by Tri Vo's avatar Tri Vo Committed by Android (Google) Code Review
Browse files

Merge "Restrict netd fwk policy."

parents 93a6b03c e62a56b7
Branches
Tags
No related merge requests found
......@@ -570,6 +570,7 @@
sysfs_android_usb
sysfs_dm
sysfs_ipv4
sysfs_net
sysfs_power
sysfs_rtc
sysfs_switch
......
......
......@@ -72,6 +72,7 @@ genfscon sysfs /devices/virtual/block/zram1 u:object_r:sysfs_zram:s0
genfscon sysfs /devices/virtual/block/zram0/uevent u:object_r:sysfs_zram_uevent:s0
genfscon sysfs /devices/virtual/block/zram1/uevent u:object_r:sysfs_zram_uevent:s0
genfscon sysfs /devices/virtual/misc/hw_random u:object_r:sysfs_hwrandom:s0
genfscon sysfs /devices/virtual/net u:object_r:sysfs_net:s0
genfscon sysfs /devices/virtual/switch u:object_r:sysfs_switch:s0
genfscon sysfs /fs/ext4/features u:object_r:sysfs_fs_ext4_features:s0
genfscon sysfs /power/state u:object_r:sysfs_power:s0
......
......
......@@ -55,6 +55,7 @@ type sysfs_hwrandom, fs_type, sysfs_type;
type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_wake_lock, fs_type, sysfs_type;
type sysfs_mac_address, fs_type, sysfs_type;
type sysfs_net, fs_type, sysfs_type;
type sysfs_power, fs_type, sysfs_type;
type sysfs_rtc, fs_type, sysfs_type;
type sysfs_switch, fs_type, sysfs_type;
......
......
......@@ -38,9 +38,11 @@ r_dir_file(netd, proc_net)
allow netd proc_net:file rw_file_perms;
# Enables PppController and interface enumeration (among others)
r_dir_file(netd, sysfs_type)
allow netd sysfs:dir r_dir_perms;
r_dir_file(netd, sysfs_net)
# Allows setting interface MTU
allow netd sysfs:file write;
allow netd sysfs_net:file w_file_perms;
# TODO: added to match above sysfs rule. Remove me?
allow netd sysfs_usb:file write;
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment