Skip to content
Snippets Groups Projects
Commit f34e5929 authored by Tri Vo's avatar Tri Vo
Browse files

shell: directory access to sysfs_net

This will allow bionic cts test to list network interfaces in
/sys/class/net.

Bug: 70537905
Test: adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests
--gtest_filter=ifaddrs.getifaddrs_interfaces
Change-Id: Ie07425fc54f9101e911962142824697e64d2bc45
parent 87dd195b
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,9 @@ allow shell { ...@@ -123,6 +123,9 @@ allow shell {
proc_zoneinfo proc_zoneinfo
}:file r_file_perms; }:file r_file_perms;
# allow listing network interfaces under /sys/class/net.
allow shell sysfs_net:dir r_dir_perms;
r_dir_file(shell, cgroup) r_dir_file(shell, cgroup)
allow shell domain:dir { search open read getattr }; allow shell domain:dir { search open read getattr };
allow shell domain:{ file lnk_file } { open read getattr }; allow shell domain:{ file lnk_file } { open read getattr };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment