From c366ba73c60405b266681cfaab6b2cc55d106c0a Mon Sep 17 00:00:00 2001 From: martinwu Date: Mon, 26 Oct 2020 11:09:23 +0800 Subject: [PATCH] Fix TH build error because of file.te Add proc_net rules into prebuilts/api/30.0/public/file.te to fix build errors After applying AOSP/1468206, TH complains a build error: Files system/sepolicy/prebuilts/api/30.0/public/file.te and system/sepolicy/public/file.te differ Bug: 145579144 Bug: 170265025 Test: build pass and reboot to check avc message in bugreport Change-Id: I2085366b345c044e1b69f726809100fa43336c34 --- prebuilts/api/30.0/public/file.te | 1 + 1 file changed, 1 insertion(+) diff --git a/prebuilts/api/30.0/public/file.te b/prebuilts/api/30.0/public/file.te index e7b305020..8097e077f 100644 --- a/prebuilts/api/30.0/public/file.te +++ b/prebuilts/api/30.0/public/file.te @@ -532,6 +532,7 @@ allow file_type rootfs:filesystem associate; allow dev_type tmpfs:filesystem associate; allow app_fuse_file app_fusefs:filesystem associate; allow postinstall_file self:filesystem associate; +allow proc_net proc:filesystem associate; # asanwrapper (run a sanitized app_process, to be used with wrap properties) with_asan(`type asanwrapper_exec, exec_type, file_type;')