Commit Graph

14 Commits

Author SHA1 Message Date
cheng_jinsong
7049f7c09c
update README_zh.md.
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>

Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-10-14 10:24:49 +00:00
cheng_jinsong
e8dd2eaf28
update README_zh.md.
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>

Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-10-13 03:12:35 +00:00
cheng_jinsong
f922be3e1a 刷新init readme 文档
Signed-off-by: cheng_jinsong <chengjinsong2@huawei.com>
2022-10-13 11:08:32 +08:00
litongxueos
77f57f4bab
update README_zh.md.
Signed-off-by: litongxueos <691216668@qq.com>

Signed-off-by: litongxueos <10714934+litongxueos@user.noreply.gitee.com>
2022-08-23 12:21:17 +00:00
Mupceet
806c4e3dcd init
Signed-off-by: Mupceet <laiguizhong@huawei.com>
Change-Id: I0d991af1e31fcf875c69058e9a48913e4bc40c91
2022-07-05 21:14:12 +08:00
openharmony_ci
db4519f03b
!656 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】规范README
Merge pull request !656 from Goldgom/N/A
2022-06-28 01:43:53 +00:00
Mupceet
f1cae89f02 修正readme
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-06-10 10:56:17 +08:00
Mupceet
c56576502f modify readme
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-06-01 10:20:24 +08:00
Goldgom
407ee17c9b
去掉不必要跳转
Signed-off-by: Goldgom <qym2005723@hotmail.com>
2022-05-21 14:00:33 +00:00
Mupceet
cf0841d2c6 fix: readme
Signed-off-by: Mupceet <laiguizhong@huawei.com>
2022-05-06 16:44:21 +08:00
xionglei6
90099dfa0c docs: README add new content
Signed-off-by: xionglei6 <xionglei6@huawei.com>
2022-03-01 21:20:38 +08:00
Qin Fandong
55582482ab init: support selinux
此提交使 init 进程有支持 SELinux 的能力。

1. 启动时加载策略并根据策略文件设置进程安全上下文
2. 根据配置文件中的 secon 字段的值设置进程的安全上下文

仅在编译时有宏定义 WITH_SELINUX 时会将此功能引入,而仅在 BUILD.gn 中编译 L2 系统(ohos_executable("init"))时会定义宏 WITH_SELINUX ,因此不影响 L2 以下的系统。

services/BUILD.gn
编译配置,编译此功能时定义宏 -DWITH_SELINUX 并链接到库 libload_policy 、 librestorecon 、 libselinux 。

services/init/standard/init.c
启动时加载策略并根据策略文件设置进程安全上下文。调用接口 load_policy 和 restorencon 。

services/init/include/init_service.h
结构体 Service 中增加了成员字符数组 secon 对应配置文件的新字段 secon 。

services/include/param/init_selinux_param.h
定义了 SELinux 功能需要使用的宏。

services/init/init_service_manager.c
将配置文件的字段 secon 读到内存中。

services/init/standard/init_service.c
根据内存中读到的每个服务的 secon 字段,设置该服务进程的安全上下文。

Signed-off-by: Qin Fandong <qinfd@superred.com.cn>
2021-10-21 09:44:13 +08:00
lanxueyuan
f43f030635 update README_zh.md. 2021-03-15 21:36:22 +08:00
mamingshuai
459f126471 update openharmony 1.0.1 2021-03-11 18:45:09 +08:00