函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_policy_loader_exists - Check whether /sbin/tomoyo-init exists.* Returns true if /sbin/tomoyo-init exists, false otherwise.

函数原型:static bool tomoyo_policy_loader_exists(void)

返回类型:bool

参数:

41  如果非Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER)Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER)等于CONFIG_SECURITY_TOMOYO_POLICY_LOADER
43  如果kern_path(Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER), llow links at the end , & path)则
44  打印信息("Not activating Mandatory Access Control as %s does not exist.\n", Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER))
46  返回:false
48  path_put( & path)
49  返回:true
调用者
名称描述
tomoyo_load_policymoyo_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