From a7bfbc8faf55409f21bc4921c8dcacb9dad71650 Mon Sep 17 00:00:00 2001 From: renwei Date: Sat, 30 Oct 2021 18:44:05 +0800 Subject: [PATCH] add selinux to ramdisk Signed-off-by: renwei --- BUILD.gn | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 6fbc6af35..d04537251 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -47,6 +47,11 @@ ohos_shared_library("libload_policy") { "-DUSE_PCRE2", "-w", ] + install_enable = true + install_images = [ + "system", + "ramdisk", + ] license_file = "$SELINUX_ROOT_DIR/LICENSE.txt" part_name = "selinux" subsystem_name = "security" @@ -77,6 +82,11 @@ ohos_shared_library("librestorecon") { "-DUSE_PCRE2", "-w", ] + install_enable = true + install_images = [ + "system", + "ramdisk", + ] license_file = "$SELINUX_ROOT_DIR/LICENSE.txt" part_name = "selinux" subsystem_name = "security" @@ -167,6 +177,7 @@ ohos_prebuilt_etc("file_contexts") { source = "$SELINUX_ROOT_DIR/sepolicy/file_contexts" license_file = "$SELINUX_ROOT_DIR/LICENSE.txt" part_name = "selinux" + # FIXME 此处不应该改变 file_contexts 的约定路径! # 因为 OpenHarmony 的 e2fsdroid 无法支持五级系统目录,所以在此作出规避, # 但是很显然这是不应当的。 -- Gitee