Allow system_server read and open access to sys/class/net.

system_server needs search/read/open access to the directory.
This change gives system_server permissions to fetching the
information from sys/class/net.

Bug: 202086915
Test: build, flash, boot
Change-Id: I7b245510efbc99427f3491c9234c45c8cc18fea1
This commit is contained in:
Wayne Ma 2022-01-10 15:26:55 +08:00
parent e9b0ec455d
commit 27abad0dc8

View file

@ -401,7 +401,7 @@ allow system_server mac_perms_file: file r_file_perms;
# Check SELinux permissions.
selinux_check_access(system_server)
allow system_server sysfs_type:dir search;
allow system_server sysfs_type:dir r_dir_perms;
r_dir_file(system_server, sysfs_android_usb)
allow system_server sysfs_android_usb:file w_file_perms;