From 2e2df6b3a7eddf6192ec0ae5182b3fe80899cb99 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Wed, 31 Mar 2021 10:23:40 -0700 Subject: [PATCH] Add vendor_kernel_modules type to public. Bug: 166559473 Bug: 183135316 Test: build and boot Change-Id: Idc9f6235a1b69236ce274d9b3173f6d39ee04c82 Merged-In: Idc9f6235a1b69236ce274d9b3173f6d39ee04c82 (cherry picked from commit 3b23f17eae77eea919bf8bd4456aaafc2a65b35f) --- private/compat/30.0/30.0.ignore.cil | 1 + public/file.te | 3 +++ 2 files changed, 4 insertions(+) diff --git a/private/compat/30.0/30.0.ignore.cil b/private/compat/30.0/30.0.ignore.cil index 438049253..8d0bdadfa 100644 --- a/private/compat/30.0/30.0.ignore.cil +++ b/private/compat/30.0/30.0.ignore.cil @@ -117,6 +117,7 @@ userdata_sysdev userspace_reboot_metadata_file vcn_management_service + vendor_kernel_modules vibrator_manager_service vpn_management_service vpnprofilestore_service diff --git a/public/file.te b/public/file.te index 243148ff0..9b6410c4f 100644 --- a/public/file.te +++ b/public/file.te @@ -560,6 +560,9 @@ type vndservice_contexts_file, file_type; # /sys/kernel/tracing/instances/bootreceiver for monitoring kernel memory corruptions. type debugfs_bootreceiver_tracing, fs_type, debugfs_type; +# kernel modules +type vendor_kernel_modules, vendor_file_type, file_type; + # Allow files to be created in their appropriate filesystems. allow fs_type self:filesystem associate; allow cgroup tmpfs:filesystem associate;