在构建过程中selinux可以是宽松的吗?

问题描述 投票:0回答:1

我从 Ubuntu 下载了 AOSP 代码,如下所示。

repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r39

之后,将下载的代码构建并刷入。

Pixel 3a 成功启动。

我尝试在 adb shell 中输入以下内容。

# adb shell getenforce
# enforcing`

但我想要的是在构建过程中允许 SELinux 状态。

我该怎么办?

谁叫我加

BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
BoardConfig.mk,

但是我在收到的AOSP代码中找不到BoardConfig.mk

我可以知道BoardConfig.mk文件的位置吗?

或者,如果有其他方法,请告诉我。

总结:

I want to set SELinux into permissive mode during the build process.
android-source selinux
1个回答
0
投票

BoardConfig.mk
是特定于设备的文件,因此可以在
device/google/bonito/sargo/BoardConfig.mk
路径中找到它。

https://cs.android.com/android/platform/superproject/+/android-10.0.0_r39:device/google/bonito/sargo/BoardConfig.mk

© www.soinside.com 2019 - 2024. All rights reserved.