mirror of
https://gitee.com/openharmony/security_selinux
synced 2024-11-27 07:10:25 +00:00
!18 component adaption
Merge pull request !18 from dapaodexiaoyu2/master
This commit is contained in:
commit
78b5bb2139
25
BUILD.gn
25
BUILD.gn
@ -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
55
bundle.json
Executable 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": []
|
||||
}
|
||||
}
|
||||
}
|
10
ohos.build
10
ohos.build
@ -1,10 +0,0 @@
|
||||
{
|
||||
"subsystem": "security",
|
||||
"parts": {
|
||||
"selinux": {
|
||||
"module_list": [
|
||||
"//third_party/selinux:selinux_group"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user