Revert^4 "Allow system server to access udc sysfs"
This reverts commit b18e810d0ec527093507a045fa2da4d718e5bd0c.
Reason for revert: reland the change as Pixel selinux issue in b/349489148 has been resolved by ag/q/topic:%22339241080_udc_path_update%22
Change-Id: I41936a2f7b975dd2ab9f7d0a14696334ad5bf52f
diff --git a/private/system_server.te b/private/system_server.te
index 1298bf7..436cfa7 100644
--- a/private/system_server.te
+++ b/private/system_server.te
@@ -1264,6 +1264,9 @@
# UsbDeviceManager uses /dev/usb-ffs
allow system_server functionfs:dir search;
allow system_server functionfs:file rw_file_perms;
+# To resolve arbitrary sysfs paths from /sys/class/udc/* symlinks.
+allow system_server sysfs_type:dir search;
+r_dir_file(system_server, sysfs_udc)
# system_server contains time / time zone detection logic so reads the associated properties.
get_prop(system_server, time_prop)