Home
last modified time | relevance | path

Searched refs:init (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/base/security/selinux/sepolicy/base/te/
Dinit.te14 allow init a2dp_host:process { rlimitinh siginh sigkill transition };
15 allow init accessibility:process { rlimitinh siginh transition };
16 allow init accesstoken_data_file:file { getattr open read write relabelto setattr };
17 allow init accesstoken_service:process { rlimitinh siginh transition };
18 allow init appspawn:process { signal };
19 allow init appspawn_socket:sock_file { getattr relabelto };
20 allow init audio_hdi_server_host:process { rlimitinh siginh transition };
21 allow init bgtaskmgr_service:process { rlimitinh siginh transition };
22 allow init blue_host:process { rlimitinh siginh transition };
23 allow init bluetooth_service:process { rlimitinh siginh transition };
[all …]
/base/startup/init/test/unittest/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
33 module_out_path = "startup/init"
35 "//base/startup/init/device_info/device_info.cpp",
36 "//base/startup/init/device_info/device_info_stub.cpp",
37 "//base/startup/init/interfaces/innerkits/control_fd/control_fd_client.c",
38 "//base/startup/init/interfaces/innerkits/control_fd/control_fd_service.c",
39 "//base/startup/init/interfaces/innerkits/fd_holder/fd_holder.c",
40 "//base/startup/init/interfaces/innerkits/fd_holder/fd_holder_internal.c",
41 "//base/startup/init/interfaces/innerkits/file/init_file.c",
42 "//base/startup/init/interfaces/innerkits/fs_manager/fstab.c",
[all …]
/base/startup/init/test/unittest/lite/
DBUILD.gn14 import("//base/startup/init/begetd.gni")
19 "//base/startup/init/services/init/adapter/init_adapter.c",
20 "//base/startup/init/services/init/init_capability.c",
21 "//base/startup/init/services/init/init_common_cmds.c",
22 "//base/startup/init/services/init/init_common_service.c",
23 "//base/startup/init/services/init/init_config.c",
24 "//base/startup/init/services/init/init_group_manager.c",
25 "//base/startup/init/services/init/init_service_file.c",
26 "//base/startup/init/services/init/init_service_manager.c",
27 "//base/startup/init/services/init/init_service_socket.c",
[all …]
/base/startup/init/services/etc/
DBUILD.gn16 sources = [ "//base/startup/init/services/etc/param/ohos.para" ]
21 sources = [ "//base/startup/init/services/etc/param/ohos.para.dac" ]
26 [ "//base/startup/init/services/etc_lite/param/ohos_const/ohos.para" ]
31 sources = [ "//base/startup/init/services/etc_lite/passwd" ]
35 sources = [ "//base/startup/init/services/etc_lite/group" ]
53 import("//base/startup/init/services/etc/param/param_fixer.gni")
56 # init etc files group
57 ohos_prebuilt_etc("init.cfg") {
59 source = "//base/startup/init/services/etc/init.without_two_stages.cfg"
61 source = "//base/startup/init/services/etc/init.cfg"
[all …]
/base/startup/init/ueventd/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
18 "//base/startup/init/interfaces/innerkits/socket:libsocket",
19 "//base/startup/init/services/log:init_log",
20 "//base/startup/init/services/param/base:param_base",
21 "//base/startup/init/services/utils:libinit_utils",
27 "//base/startup/init/services/utils/init_utils.c",
28 "//base/startup/init/ueventd/lite/ueventd_parameter.c",
29 "//base/startup/init/ueventd/ueventd.c",
30 "//base/startup/init/ueventd/ueventd_device_handler.c",
31 "//base/startup/init/ueventd/ueventd_firmware_handler.c",
[all …]
/base/startup/init/test/fuzztest/
DBUILD.gn14 module_output_path = "startup/init"
23 include_dirs = [ "//base/startup/init/test/fuzztest/utils/include" ]
26 part_name = "init"
33 fuzz_config_file = "//base/startup/init/test/fuzztest/doreboot_fuzzer"
36 "//base/startup/init/interfaces/innerkits/include",
37 "//base/startup/init/test/fuzztest/utils/include",
41 "//base/startup/init/interfaces/innerkits:libbegetutil",
58 fuzz_config_file = "//base/startup/init/test/fuzztest/getcontrolfile_fuzzer"
61 "//base/startup/init/interfaces/innerkits/include",
62 "//base/startup/init/test/fuzztest/utils/include",
[all …]
/base/startup/init/services/param/liteos/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
16 "//base/startup/init/interfaces/innerkits/include/syspara",
17 "//base/startup/init/services/modules/init_hook",
18 "//base/startup/init/services/param/include",
19 "//base/startup/init/services/param/adapter",
20 "//base/startup/init/services/param/base",
21 "//base/startup/init/services/include/param",
22 "//base/startup/init/services/include",
23 "//base/startup/init/services/init/include",
24 "//base/startup/init/services/log",
[all …]
/base/security/selinux/sepolicy/ohos_policy/multimedia/player/system/
Dinit.te14 #avc: denied { unlink } for pid=1 comm="init" name="hilogControl" dev="tmpfs" ino=494 scontext=u…
15 allow init hilog_control_socket:sock_file { unlink };
16 #avc: denied { unlink } for pid=1 comm="init" name="hilogInput" dev="tmpfs" ino=493 scontext=u:r…
17 allow init hilog_input_socket:sock_file { unlink };
18 #avc: denied { sigkill } for pid=1 comm="init" scontext=u:r:init:s0 tcontext=u:r:hilogd:s0 tclas…
19 allow init hilogd:process { sigkill };
20 …: denied { getattr } for pid=1 comm="init" path="/data/libinput" dev="mmcblk0p11" ino=652801 sc…
21 allow init data_libinput:dir { getattr };
22 #avc: denied { setattr } for pid=1 comm="init" name="rga" dev="tmpfs" ino=181 scontext=u:r:init:…
23 allow init dev_rga:chr_file { setattr };
[all …]
/base/security/selinux/sepolicy/ohos_policy/startup/init/system/
Dinit.te14 allow init data_ethernet:dir { getattr };
15 allow init data_log:file { getattr };
16 allow init data_parameters:file { getattr };
17 allow init data_udev:dir { relabelfrom };
18 allow init privacy_service:process { transition };
19 allow init hisysevent_socket:sock_file { unlink setattr };
20 allow init system_core_hap:file { read open };
21 allow init system_core_hap:dir { search };
22 allow init system_core_hap:process { getattr };
24 allow init accessibility_param:file { map open read relabelto relabelfrom };
[all …]
/base/startup/init/interfaces/innerkits/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
26 "//base/startup/init/interfaces/innerkits/include",
27 "//base/startup/init/interfaces/innerkits/include/syspara",
28 "//base/startup/init/interfaces/innerkits/include/token",
29 "//base/startup/init/interfaces/innerkits/include/sandbox/include",
30 "//base/startup/init/services/include",
38 "//base/startup/init/services/include",
39 "//base/startup/init/services/include/param",
40 "//base/startup/init/interfaces/innerkits/fd_holder",
41 "//base/startup/init/services/param/include",
[all …]
/base/startup/init/test/moduletest/
DBUILD.gn14 import("//base/startup/init/begetd.gni")
22 "//base/startup/init/services/include/param",
23 "//base/startup/init/services/include",
24 "//base/startup/init/services/init/include",
25 "//base/startup/init/services/log",
26 "//base/startup/init/interfaces/innerkits/include",
27 "//base/startup/init/services/loopevent/include",
28 "//base/startup/init/ueventd/include",
34 "//base/startup/init/interfaces/innerkits:libbegetutil",
35 "//base/startup/init/services/log:agent_log",
[all …]
/base/security/selinux/sepolicy/ohos_policy/filemanagement/storage_service/system/
Dinit.te14 allow init sa_storage_manager_daemon:samgr_class { get };
15 allow init sa_storage_manager_service:samgr_class { get };
16 allow init storage_manager:binder { call };
17 allow init storage_daemon:binder { call };
19 #avc: denied { call } for pid=262 comm="sdc" scontext=u:r:init:s0 tcontext=u:r:samgr:s0 tclass=b…
20 allow init samgr:binder { call };
22 #avc: denied { execute } for pid=260 comm="init" name="sdc" dev="mmcblk0p6" ino=354 scontext=u:r…
23 …denied { read open } for pid=260 comm="init" path="/system/bin/sdc" dev="mmcblk0p6" ino=354 scon…
24 … { execute_no_trans } for pid=260 comm="init" path="/system/bin/sdc" dev="mmcblk0p6" ino=354 scon…
25 …60 comm="sdc" path="/system/bin/sdc" dev="mmcblk0p6" ino=354 scontext=u:r:init:s0 tcontext=u:objec…
[all …]
/base/startup/init/
DREADME_zh.md5 init组件负责处理从内核加载第一个用户态进程开始,到第一个应用程序启动之间的系统服务进程启动过程。启动恢复子系统除负责加载各系统关键进程之外,还需在启动的同时设置其对应权限,并在子进程启动后对指定…
11 ![](figures/init系统架构.png)
16 base/startup/init/
23 │   ├── etc # init配置文件目录(标准系统)
24 │   ├── etc_lite # init配置文件目录(小型系统)
25 │   ├── include # init头文件目录
26 │   ├── init # init核心功能源码
29 │   │   ├── lite # init核心功能源码(小型系统)
30 │   │   └── standard # init核心功能源码(标准系统)
31 │   ├── log # init日志部件。
[all …]
/base/security/selinux/sepolicy/ohos_policy/multimedia/audio/system/
Dinit.te14 #avc: denied { rlimitinh } for pid=355 comm="sa_main" scontext=u:r:init:s0 tcontext=u:r:audio_po…
15 #avc: denied { siginh } for pid=355 comm="sa_main" scontext=u:r:init:s0 tcontext=u:r:audio_polic…
16 …ied { transition } for pid=355 comm="init" path="/system/bin/sa_main" dev="mmcblk0p5" ino=336 sc…
17 allow init audio_policy:process { rlimitinh siginh transition };
19 … denied { relabelfrom } for pid=1 comm="init" name=".pulse_dir" dev="mmcblk0p11" ino=783368 scon…
20 allow init data_data_file:dir { relabelfrom };
22 #avc: denied { add_name } for pid=1 comm="init" name="runtime" scontext=u:r:init:s0 tcontext=u:o…
23 #avc: denied { create } for pid=1 comm="init" name="runtime" scontext=u:r:init:s0 tcontext=u:obj…
24 …enied { getattr } for pid=1 comm="init" path="/data/data/.pulse_dir" dev="mmcblk0p11" ino=522246…
25 … denied { open } for pid=1 comm="init" path="/data/data/.pulse_dir" dev="mmcblk0p11" ino=783368…
[all …]
/base/security/selinux/sepolicy/ohos_policy/startup/init/public/
Dinit.te14 type init, nativedomain, domain;
16 allow init console:process { rlimitinh siginh transition getattr };
17 allow init data_startup:dir { create getattr open read relabelfrom relabelto remove_name search set…
18 allow init data_startup:file { create ioctl open read append relabelto rename unlink write open };
19 allow init proc_stat_file:file { setattr read open };
20 allow init proc_diskstats_file:file { read open };
21 allow init kernel:file { read open };
22 allow init kernel:dir { search };
24 allow init bootevent_wms_param:file { map open read relabelto relabelfrom};
26 allow init dhardware_dm_param:file { map open read relabelto relabelfrom };
[all …]
/base/startup/init/services/param/linux/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
19 "//base/startup/init/interfaces/innerkits/include",
20 "//base/startup/init/interfaces/service/include/param",
21 "//base/startup/init/interfaces/service/param/include",
28 "//base/startup/init/services/param/include",
29 "//base/startup/init/services/param/adapter",
30 "//base/startup/init/services/param/linux",
31 "//base/startup/init/services/param/base",
32 "//base/startup/init/services/include/param",
33 "//base/startup/init/services/include",
[all …]
/base/startup/init/services/begetctl/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
16 "//base/startup/init/services/begetctl",
17 "//base/startup/init/services/begetctl/shell",
18 "//base/startup/init/services/param/include",
19 "//base/startup/init/services/param/adapter",
20 "//base/startup/init/services/param/linux",
21 "//base/startup/init/services/param/base",
22 "//base/startup/init/services/include/param",
23 "//base/startup/init/services/include",
24 "//base/startup/init/services/loopevent/include",
[all …]
/base/startup/init/services/init/lite/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
27 # feature: init
28 executable("init") {
29 output_name = "init"
40 "../lite/init.c",
50 "//base/startup/init/interfaces/innerkits/include",
51 "//base/startup/init/interfaces/innerkits/fd_holder",
52 "//base/startup/init/services/include/param",
53 "//base/startup/init/services/init/include",
62 "//base/startup/init/services/log:init_log",
[all …]
/base/security/selinux/sepolicy/base/public/
Dinit.te15 allow init domain:{ unix_stream_socket unix_dgram_socket } { create bind setopt };
17 neverallow init data_local_tmp:dir { write add_name remove_name };
18 neverallow { domain -kernel } init:process dyntransition;
19 neverallow { domain -kernel } init:process transition;
21 neverallow init *:process noatsecure;
23 neverallow { domain -processdump } init:process ptrace;
25 neverallow init self:perf_event { kernel tracepoint read write };
27 neverallow init hap_file_attr:lnk_file read;
28 neverallow init data_local_tmp:lnk_file read;
30 neverallow init { file_attr fs_attr -init_exec }:file entrypoint;
[all …]
/base/startup/init/services/param/base/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
19 "//base/startup/init/interfaces/innerkits/include",
20 "//base/startup/init/services/include/param",
21 "//base/startup/init/services/include",
22 "//base/startup/init/services/loopevent/include",
23 "//base/startup/init/services/log",
28 "//base/startup/init/services/param/base/param_comm.c",
29 "//base/startup/init/services/param/base/param_trie.c",
30 "//base/startup/init/services/utils/init_hashmap.c",
31 "//base/startup/init/services/utils/list.c",
[all …]
/base/startup/init/test/exec_test/
DBUILD.gn14 import("//base/startup/init/begetd.gni")
20 "//base/startup/init/services/log",
21 "//base/startup/init/interfaces/innerkits/include",
25 "//base/startup/init/interfaces/innerkits:libbegetutil",
30 part_name = "init"
39 deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil" ]
41 include_dirs = [ "//base/startup/init/interfaces/innerkits/include" ]
46 part_name = "init"
51 source = "//base/startup/init/test/exec_test/fd_holder_test.cfg"
52 part_name = "init"
[all …]
/base/startup/init/services/init/standard/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
33 ohos_executable("init") {
38 "../standard/init.c",
51 "//base/startup/init/interfaces/innerkits/hookmgr/hookmgr.c",
52 "//base/startup/init/interfaces/innerkits/modulemgr/modulemgr.c",
58 "//base/startup/init/services/init/include",
59 "//base/startup/init/services/modules/reboot",
64 "//base/startup/init/interfaces/innerkits/control_fd:libcontrolfd",
65 "//base/startup/init/interfaces/innerkits/fd_holder:fdholder",
66 "//base/startup/init/interfaces/innerkits/fs_manager:libfsmanager_static",
[all …]
/base/startup/init/services/param/watcher/
DBUILD.gn17 relative_install_dir = "init"
18 part_name = "init"
31 "//base/startup/init/services/param/include",
32 "//base/startup/init/services/include/param",
33 "//base/startup/init/services/param/linux",
34 "//base/startup/init/services/param/watcher/proxy",
35 "//base/startup/init/services/param/watcher/include",
36 "//base/startup/init/services/include",
37 "//base/startup/init/services/log",
38 "//base/startup/init/interfaces/innerkits/include",
[all …]
/base/security/selinux/sepolicy/ohos_policy/telephony/telephony_sa/system/
Dinit.te14 allow init normal_hap:dir { getattr search };
15 allow init normal_hap:file { open read };
16 allow init normal_hap:lnk_file read;
17 allow init normal_hap:process getattr;
18 allow init riladapter_host:process { rlimitinh siginh transition };
19 allow init telephony_sa:binder { call transfer };
20 allow init telephony_sa:dir { getattr search };
21 allow init telephony_sa:file { open read };
22 allow init telephony_sa:lnk_file read;
23 allow init telephony_sa:process getattr;
/base/startup/init/services/modules/bootchart/
DBUILD.gn13 import("//base/startup/init/begetd.gni")
20 "//base/startup/init/services/modules",
21 "//base/startup/init/services/modules/bootchart",
22 "//base/startup/init/services/include/param",
30 external_deps = [ "init:libinit_module_engine" ]
32 part_name = "init"
35 module_install_dir = "lib64/init"
37 module_install_dir = "lib/init"
43 "//base/startup/init/services/modules",
44 "//base/startup/init/services/modules/bootchart",
[all …]

12345678910>>...18