!18 component adaption

Merge pull request !18 from dapaodexiaoyu2/master
This commit is contained in:
openharmony_ci 2022-01-14 08:23:13 +00:00 committed by Gitee
commit 78b5bb2139
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 80 additions and 10 deletions

View File

@ -233,3 +233,28 @@ ohos_prebuilt_etc("file_contexts") {
#relative_install_dir = "selinux/targeted/contexts/files/"
relative_install_dir = "selinux/targeted/contexts/"
}
group("selinux_group") {
if (build_selinux) {
deps = [
"//base/security/selinux:build_file_contexts",
"//base/security/selinux:build_sepolicy",
"//base/security/selinux:config",
"//base/security/selinux:file_contexts",
"//base/security/selinux:load_policy",
"//base/security/selinux:restorecon",
"//base/security/selinux:selinux_test",
"//third_party/selinux:checkpolicy($host_toolchain)",
"//third_party/selinux:chkcon",
"//third_party/selinux:getenforce",
"//third_party/selinux:getfilecon",
"//third_party/selinux:getpidcon",
"//third_party/selinux:secilc($host_toolchain)",
"//third_party/selinux:sefcontext_compile($host_toolchain)",
"//third_party/selinux:selinux_check_access",
"//third_party/selinux:selinuxexeccon",
"//third_party/selinux:setenforce",
"//third_party/selinux:setfilecon",
]
}
}

55
bundle.json Executable file
View File

@ -0,0 +1,55 @@
{
"name": "@ohos/selinux",
"description": "security-enhanced linux(SELINUX) is a mandatory access control mechanism on linux",
"version": "3.1",
"license": "Apache License 2.0",
"publishAs": "code-segment",
"segment": {
"destPath": "base/security/selinux"
},
"scripts": {},
"dirs": {},
"component": {
"name": "selinux",
"subsystem": "security",
"adapted_system_type": [ "standard" ],
"deps": {
"components": [
"init"
],
"third_party": [
"selinux",
"pcre2",
"FreeBSD",
"toybox",
"Linux_Kernel"
]
},
"build": {
"sub_component": [
"//base/security/selinux:selinux_group"
],
"inner_kits": [
{
"name": "//base/security/selinux:libload_policy",
"header": {
"header_files": [
"policycoreutils.h"
],
"header_base": "//base/security/selinux/interfaces/policycoreutils/include"
}
},
{
"name": "//base/security/selinux:librestorecon",
"header": {
"header_files": [
"policycoreutils.h"
],
"header_base": "//base/security/selinux/interfaces/policycoreutils/include"
}
}
],
"test": []
}
}
}

View File

@ -1,10 +0,0 @@
{
"subsystem": "security",
"parts": {
"selinux": {
"module_list": [
"//third_party/selinux:selinux_group"
]
}
}
}