Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\load_policy.c Create Date:2022-07-28 19:43:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_policy_loader_exists - Check whether /sbin/tomoyo-init exists.* Returns true if /sbin/tomoyo-init exists, false otherwise.

Proto:static bool tomoyo_policy_loader_exists(void)

Type:bool

Parameter:Nothing

41  If Not Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER) Then Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER) = CONFIG_SECURITY_TOMOYO_POLICY_LOADER
43  If kern_path(Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER), llow links at the end , & path) Then
44  pr_info("Not activating Mandatory Access Control as %s does not exist.\n", Path to the policy loader. (default = CONFIG_SECURITY_TOMOYO_POLICY_LOADER))
46  Return false
48  path_put( & path)
49  Return true
Caller
NameDescribe
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