From 2a2a97afbac87051d8d5c6c20e79b2decbe946b3 Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Mon, 14 Jun 2021 13:59:07 -0700 Subject: [PATCH] Disable build-time debugfs restrictions on GSI builds These restrictions enable macros that disable sepolicy access to debugfs for unauthorized clients on S-launching devices. However, since the Android S GSI build must also be fully functional on earlier devices that could have possibly depended on debugfs, disable the build-time restrictions on GSI builds. Bug: 184381659 Test: make Change-Id: I583693df5c30d9bab28f76a6c1e4e9db8e5fd89f --- target/product/gsi_release.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/product/gsi_release.mk b/target/product/gsi_release.mk index 25fa68b644..8591a83e06 100644 --- a/target/product/gsi_release.mk +++ b/target/product/gsi_release.mk @@ -42,6 +42,9 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true # Enable dynamic partition size PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true +# Disable the build-time debugfs restrictions on GSI builds +PRODUCT_SET_DEBUGFS_RESTRICTIONS := false + # GSI targets should install "unflattened" APEXes in /system TARGET_FLATTEN_APEX := false