sepolicy/file.te: drop definition of sysfs_udc type
as it's defined as a common type with the change here:
https://android-review.googlesource.com/c/platform/system/sepolicy/+/3163782
Otherwise it will cause build error like this:
[ 70% 86571/123497] //system/sepolicy:vendor_sepolicy.cil.raw Building cil for vendor_sepolicy.cil.raw (priority: 15)
FAILED: out/soong/.intermediates/system/sepolicy/vendor_sepolicy.cil.raw/android_common/sm8x50/vendor_sepolicy.cil.raw
out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o out/soong/.intermediates/system/sepolicy/vendor_sepolicy.cil.raw/android_common/sm8x50/vendor_sepolicy.cil.raw out/soong/.intermediates/system/sepolicy/vendor_sepolicy.conf/android_common/sm8x50/vendor_sepolicy.conf && out/host/linux-x86/bin/build_sepolicy filter_out -f out/soong/.intermediates/system/sepolicy/reqd_policy_mask.cil/android_common/reqd_policy_mask.cil -t out/soong/.intermediates/system/sepolicy/vendor_sepolicy.cil.raw/android_common/sm8x50/vendor_sepolicy.cil.raw # hash of input list: 4d25fde885073f9c248c0cb8e7f1c2f66043d15a11c329731210699739ca25ea
device/linaro/dragonboard/sepolicy/file.te:5:ERROR 'Duplicate declaration of type' at token ';' on line 21953:
type sysfs_remoteproc, fs_type, sysfs_type;
type sysfs_udc, fs_type, sysfs_type;
checkpolicy: error(s) encountered while parsing configuration
Test: build finished successfully
Change-Id: I905726fad5a013f1b81088c29f062d1577acd87d
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
diff --git a/sepolicy/file.te b/sepolicy/file.te
index b149497..d378e61 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -1,7 +1,6 @@
type sysfs_mss, fs_type, sysfs_type;
type sysfs_rmtfs, fs_type, sysfs_type;
type sysfs_remoteproc, fs_type, sysfs_type;
-type sysfs_udc, fs_type, sysfs_type;
type sysfs_dt_compatible, fs_type, sysfs_type;
type dri_device, dev_type;
type rmtfs_device, dev_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 7e548db..b2fa7b4 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -40,8 +40,6 @@
/sys/devices/platform/remoteproc-adsp/remoteproc u:object_r:sysfs_remoteproc:s0
/sys/devices/platform/remoteproc-cdsp/remoteproc u:object_r:sysfs_remoteproc:s0
-/sys/class/udc u:object_r:sysfs_udc:s0
-
/sys/firmware/devicetree/base/compatible u:object_r:sysfs_dt_compatible:s0
/data/vendor/tmp(/.*)? u:object_r:tqftpserv_vendor_data_file:s0
diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts
index d51b60f..3e470f9 100644
--- a/sepolicy/genfs_contexts
+++ b/sepolicy/genfs_contexts
@@ -7,7 +7,6 @@
genfscon sysfs /devices/platform/soc@0/17300000.remoteproc u:object_r:sysfs_remoteproc:s0
genfscon sysfs /devices/platform/soc@0/ae00000.mdss u:object_r:sysfs_gpu:s0
genfscon sysfs /devices/platform/soc@0/ae00000.display-subsystem u:object_r:sysfs_gpu:s0
-genfscon sysfs /class/udc u:object_r:sysfs_udc:s0
genfscon sysfs /firmware/devicetree/base/compatible u:object_r:sysfs_dt_compatible:s0
#wakeups on db845c and rb5