mirror of
https://gitee.com/openharmony/security_selinux
synced 2024-11-27 07:10:25 +00:00
add selinux to ramdisk
Signed-off-by: renwei <renwei8@huawei.com>
This commit is contained in:
parent
4855c62b93
commit
a7bfbc8faf
11
BUILD.gn
11
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 无法支持五级系统目录,所以在此作出规避,
|
||||
# 但是很显然这是不应当的。
|
||||
|
Loading…
Reference in New Issue
Block a user