Function report |
Source Code:security\tomoyo\load_policy.c |
Create Date:2022-07-28 19:43:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:void tomoyo_load_policy(const char *filename)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | filename |
91 | If External variable definitions. ********* || done Then Return |
95 | If strcmp(filename, Path to the trigger. (default = CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER)) Then Return |
97 | If Not moyo_policy_loader_exists - Check whether /sbin/tomoyo-init exists.* Returns true if /sbin/tomoyo-init exists, false otherwise. Then Return |
99 | done = true |
100 | pr_info("Calling %s to load policy. Please wait.\n", 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 |
Name | Describe |
---|---|
tomoyo_bprm_set_creds | moyo_bprm_set_creds - Target for security_bprm_set_creds().*@bprm: Pointer to "struct linux_binprm".* Returns 0. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |