函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\load_policy.c Create Date:2022-07-27 21:12:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_load_policy - Run external policy loader to load policy.*@filename: The program about to start.* This function checks whether @filename is /sbin/init , and if so* invoke /sbin/tomoyo-init and wait for the termination of /sbin/tomoyo-init

函数原型:void tomoyo_load_policy(const char *filename)

返回类型:void

参数:

类型参数名称
const char *filename
91  如果External variable definitions. *********done则返回
93  如果非Path to the trigger. (default = CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER)Path to the trigger. (default = CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER)等于CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER
95  如果字符串比较则返回
97  如果非moyo_policy_loader_exists - Check whether /sbin/tomoyo-init exists.* Returns true if /sbin/tomoyo-init exists, false otherwise.则返回
99  done = true
100  打印信息("Calling %s to load policy. Please wait.\n", Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER))
101  argv[0]等于Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER)
102  argv[1] = NULL
103  envp[0]等于"HOME=/"
104  envp[1]等于"PATH=/sbin:/bin:/usr/sbin:/usr/bin"
105  envp[2] = NULL
106  all_usermodehelper() - prepare and start a usermode application*@path: path to usermode executable*@argv: arg vector for process*@envp: environment for process*@wait: wait for the application to finish and return status
107  moyo_check_profile - Check all profiles currently assigned to domains are defined.
调用者
名称描述
tomoyo_bprm_set_credsmoyo_bprm_set_creds - Target for security_bprm_set_creds().*@bprm: Pointer to "struct linux_binprm".* Returns 0.