/base/startup/init/test/unittest/ |
D | BUILD.gn | 13 import("//base/startup/init/begetd.gni") 44 module_out_path = "startup/init" 46 "//base/startup/init/device_info/device_info.cpp", 47 "//base/startup/init/device_info/device_info_stub.cpp", 48 "//base/startup/init/interfaces/innerkits/control_fd/control_fd_client.c", 49 "//base/startup/init/interfaces/innerkits/control_fd/control_fd_service.c", 50 "//base/startup/init/interfaces/innerkits/fd_holder/fd_holder.c", 51 "//base/startup/init/interfaces/innerkits/fd_holder/fd_holder_internal.c", 52 "//base/startup/init/interfaces/innerkits/file/init_file.c", 53 "//base/startup/init/interfaces/innerkits/fs_manager/fstab.c", [all …]
|
/base/security/selinux_adapter/sepolicy/ohos_policy/startup/init/system/ |
D | init.te | 14 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_attr:file { read open }; 21 allow init system_core_hap_attr:dir { search }; 22 allow init system_core_hap_attr:process { getattr }; 23 allow init system_lib_file:dir { open read }; [all …]
|
/base/startup/init/test/unittest/lite/ |
D | BUILD.gn | 14 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/test/fuzztest/ |
D | BUILD.gn | 14 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", 57 fuzz_config_file = "//base/startup/init/test/fuzztest/dorebootext_fuzzer" 60 "//base/startup/init/interfaces/innerkits/include", 61 "//base/startup/init/test/fuzztest/utils/include", [all …]
|
/base/startup/init/services/etc/ |
D | BUILD.gn | 16 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/ |
D | BUILD.gn | 13 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/security/selinux_adapter/sepolicy/ohos_policy/update/updater/system/ |
D | init.te | 15 #avc: denied { read } for pid=1 comm="init" name="ohos.para.size" dev="rootfs" ino=17448 scontext=u… 16 … getattr } for pid=1 comm="init" path="/etc/selinux/targeted/contexts/file_contexts" dev="rootfs" … 17 …d { open } for pid=1 comm="init" path="/etc/selinux/targeted/contexts/file_contexts" dev="rootfs" … 18 …avc: denied { open } for pid=1 comm="init" path="/etc/param/ohos.para.size" dev="rootfs" ino=17448… 19 #avc: denied { execute } for pid=231 comm="init" name="ueventd" dev="rootfs" ino=17717 scontext=u:r… 20 …enied { execute_no_trans } for pid=233 comm="init" path="/bin/hilog" dev="rootfs" ino=797 scontext… 21 …c: denied { map } for pid=1 comm="init" path="/lib/init/librebootmodule.z.so" dev="rootfs" ino=176… 22 …id=235 comm="hilog" path="/bin/hilog" dev="rootfs" ino=17650 scontext=u:r:init:s0 tcontext=u:objec… 24 allow init rootfs:file { getattr read open execute map }; 26 # avc: denied { read } for pid=1 comm="init" name="etc" dev="rootfs" ino=399 scontext=u:r:init:s0 t… [all …]
|
/base/startup/init/services/param/liteos/ |
D | BUILD.gn | 13 import("//base/startup/init/begetd.gni") 17 "//base/startup/init/interfaces/innerkits/include/syspara", 18 "//base/startup/init/services/modules/init_hook", 19 "//base/startup/init/services/param/include", 20 "//base/startup/init/services/param/adapter", 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/init/include", 25 "//base/startup/init/services/log", [all …]
|
/base/startup/init/test/moduletest/ |
D | BUILD.gn | 14 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/services/param/include", 29 "//base/startup/init/ueventd/include", 30 "//base/startup/init/device_info", [all …]
|
/base/security/selinux_adapter/sepolicy/ohos_policy/multimedia/player/system/ |
D | init.te | 14 #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/startup/init/interfaces/innerkits/ |
D | BUILD.gn | 13 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/services/include", 30 "//base/startup/init/services/include/param", 31 "//base/startup/init/services/param/include", 39 "//base/startup/init/services/include", 40 "//base/startup/init/services/include/param", 41 "//base/startup/init/interfaces/innerkits/fd_holder", [all …]
|
/base/startup/init/services/begetctl/ |
D | BUILD.gn | 13 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/param/linux/ |
D | BUILD.gn | 13 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/security/selinux_adapter/sepolicy/ohos_policy/filemanagement/storage_service/system/ |
D | init.te | 14 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/security/selinux_adapter/sepolicy/ohos_policy/startup/init/public/ |
D | init.te | 14 type init, nativedomain, domain; 19 allow init console:process { rlimitinh siginh transition getattr }; 20 allow init data_startup:dir { create getattr open read relabelfrom relabelto remove_name search set… 21 allow init data_startup:file { create ioctl open read append relabelto rename unlink write open }; 22 allow init proc_stat_file:file { setattr read open }; 23 allow init proc_diskstats_file:file { read open }; 24 allow init kernel:file { read open }; 25 allow init kernel:dir { search }; 27 allow init bootevent_wms_param:file { map open read relabelto relabelfrom}; 29 allow init dhardware_dm_param:file { map open read relabelto relabelfrom }; [all …]
|
/base/startup/init/ |
D | README_zh.md | 5 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_adapter/sepolicy/ohos_policy/multimedia/audio/system/ |
D | init.te | 14 #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_adapter/sepolicy/ohos_policy/update/module_update/system/ |
D | init.te | 14 allow init data_module_update:dir { add_name create getattr link open read relabelto remove_name se… 15 allow init data_module_update_package:dir { getattr open read relabelto search setattr write }; 16 allow init data_module_update_package:file { getattr link open read }; 17 allowxperm init dev_block_file:blk_file ioctl { 0x1261 0x4c00 0x4c01 0x4c04 0x4c09 0x4c0a }; 18 allow init dev_file:chr_file { ioctl open read write }; 19 allowxperm init dev_file:chr_file ioctl { 0xfd03 0xfd06 0xfd07 0xfd09 }; 20 allow init dev_loop_control_file:chr_file { getattr ioctl open read write }; 21 allowxperm init dev_loop_control_file:chr_file ioctl { 0x4c80 0x4c82 }; 22 allow init module_update_file:dir { search }; 23 allow init module_update_service:binder { call }; [all …]
|
/base/startup/init/services/init/lite/ |
D | BUILD.gn | 13 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_adapter/sepolicy/ohos_policy/powermgr/battery_manager/system/ |
D | init.te | 14 # avc: denied { getattr } for pid=1 comm="init" scontext=u:r:init:s0 tcontext=u:r:charger:s0 tcl… 15 # avc: denied { rlimitinh } for pid=1 comm="init" scontext=u:r:init:s0 tcontext=u:r:charger:s0 t… 16 # avc: denied { siginh } for pid=1 comm="init" scontext=u:r:init:s0 tcontext=u:r:charger:s0 tcla… 17 # avc: denied { transition } for pid=1 comm="init" scontext=u:r:init:s0 tcontext=u:r:charger:s0 … 18 allow init charger:process { getattr rlimitinh siginh transition }; 20 … denied { execute } for pid=235 comm="init" path="/vendor/bin/charger" dev="mmcblk0p6" ino=14 sc… 21 #avc: denied { read } for pid=217 scontext=u:r:init:s0 tcontext=u:object_r:charger_exec:s0 tclass=… 22 #avc: denied { getattr } for pid=218 scontext=u:r:init:s0 tcontext=u:object_r:charger_exec:s0 tcla… 23 allow init charger_exec:file { execute getattr read open }; 25 #avc: denied { read } for pid=1 comm="init" scontext=u:r:init:s0 tcontext=u:r:usb_host:s0 tclass… [all …]
|
/base/security/selinux_adapter/sepolicy/base/public/ |
D | init.te | 15 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; 22 neverallow init *:process noatsecure; 24 neverallow { domain -processdump } init:process ptrace; 26 neverallow init self:perf_event { kernel tracepoint read write }; 28 neverallow init hap_file_attr:lnk_file read; 29 neverallow init data_local_tmp:lnk_file read; 31 neverallow init { file_attr fs_attr -init_exec }:file entrypoint; [all …]
|
/base/security/selinux_adapter/sepolicy/ohos_policy/security/dlp_permission_service/system/ |
D | init.te | 14 # avc: denied { rlimitinh } for pid=14376 comm="sa_main" scontext=u:r:init:s0 tcontext=u:r:dlp_p… 15 # avc: denied { siginh } for pid=14376 comm="sa_main" scontext=u:r:init:s0 tcontext=u:r:dlp_perm… 16 …ied { transition } for pid=14376 comm="init" path="/system/bin/sa_main" dev="sdd74" ino=406 scon… 17 allow init dlp_permission_service:process { rlimitinh siginh transition }; 19 …denied { relabelto } for pid=1 comm="init" name="dlp_permission_service" dev="sdd78" ino=3362 sc… 20 allow init dlp_permission_data_file:dir { relabelto }; 22 …nied { relabelto } for pid=1 comm="init" name="retention_sandbox_info.json" dev="sdd78" ino=6121… 23 allow init dlp_permission_data_file:file { relabelto }; 24 …getattr } for pid=1 comm="init" path="/data/service/el1/public/dlp_permission_service" dev="sdd78… 25 … { open } for pid=1 comm="init" path="/data/service/el1/public/dlp_permission_service" dev="sdd78… [all …]
|
/base/startup/init/services/param/base/ |
D | BUILD.gn | 13 import("//base/startup/init/begetd.gni") 20 "//base/startup/init/interfaces/innerkits/include", 21 "//base/startup/init/services/include/param", 22 "//base/startup/init/services/include", 23 "//base/startup/init/services/loopevent/include", 24 "//base/startup/init/services/log", 25 "//base/startup/init/services/param/include", 26 "//base/startup/init/services/param/base", 31 "//base/startup/init/services/param/base/param_comm.c", 32 "//base/startup/init/services/param/base/param_trie.c", [all …]
|
/base/startup/init/services/param/watcher/ |
D | BUILD.gn | 17 relative_install_dir = "init" 18 part_name = "init" 24 "//base/startup/init/services/param/linux/param_message.c", 32 "//base/startup/init/services/param/include", 33 "//base/startup/init/services/include/param", 34 "//base/startup/init/services/param/linux", 35 "//base/startup/init/services/param/watcher/proxy", 36 "//base/startup/init/services/param/watcher/include", 37 "//base/startup/init/services/include", 38 "//base/startup/init/services/log", [all …]
|
/base/startup/init/services/init/standard/ |
D | BUILD.gn | 13 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", 60 "//base/startup/init/services/modules/init_context", 66 "//base/startup/init/interfaces/innerkits/control_fd:libcontrolfd", 67 "//base/startup/init/interfaces/innerkits/fd_holder:fdholder", [all …]
|