add selinux to ramdisk

Signed-off-by: renwei <renwei8@huawei.com>
This commit is contained in:
renwei 2021-10-30 18:44:05 +08:00
parent 4855c62b93
commit a7bfbc8faf

View File

@ -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 无法支持五级系统目录,所以在此作出规避,
# 但是很显然这是不应当的。