Home
last modified time | relevance | path

Searched refs:envp (Results 1 – 5 of 5) sorted by relevance

/security/tomoyo/
Dload_policy.c87 char *envp[3]; in tomoyo_load_policy() local
102 envp[0] = "HOME=/"; in tomoyo_load_policy()
103 envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in tomoyo_load_policy()
104 envp[2] = NULL; in tomoyo_load_policy()
105 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); in tomoyo_load_policy()
Dcondition.c58 const int envc, const struct tomoyo_envp *envp, in tomoyo_envp() argument
68 for (i = 0; i < envc; envp++, checked++, i++) { in tomoyo_envp()
70 if (!tomoyo_path_matches_pattern(&name, envp->name)) in tomoyo_envp()
73 if (envp->value) { in tomoyo_envp()
75 envp->value); in tomoyo_envp()
76 if (envp->is_not) in tomoyo_envp()
80 if (!envp->is_not) in tomoyo_envp()
102 const u16 envc, const struct tomoyo_envp *envp) in tomoyo_scan_bprm() argument
165 envc, envp, in tomoyo_scan_bprm()
197 for (i = 0; i < envc; envp++, i++) { in tomoyo_scan_bprm()
[all …]
Dgc.c286 const struct tomoyo_envp *envp in tomoyo_del_condition() local
294 for (i = 0; i < envc; envp++, i++) { in tomoyo_del_condition()
295 tomoyo_put_name(envp->name); in tomoyo_del_condition()
296 tomoyo_put_name(envp->value); in tomoyo_del_condition()
Dcommon.c1224 const struct tomoyo_envp *envp = in tomoyo_print_condition() local
1225 (typeof(envp)) (argv + cond->argc); in tomoyo_print_condition()
1236 envp++; in tomoyo_print_condition()
1275 envp->name->name); in tomoyo_print_condition()
1276 tomoyo_io_printf(head, "\"]%s=", envp-> in tomoyo_print_condition()
1278 if (envp->value) { in tomoyo_print_condition()
1280 tomoyo_set_string(head, envp-> in tomoyo_print_condition()
1287 envp++; in tomoyo_print_condition()
/security/keys/
Drequest_key.c93 static int call_usermodehelper_keys(char *path, char **argv, char **envp, in call_usermodehelper_keys() argument
98 info = call_usermodehelper_setup(path, argv, envp, GFP_KERNEL, in call_usermodehelper_keys()
120 char *argv[9], *envp[3], uid_str[12], gid_str[12]; in call_sbin_request_key() local
176 envp[i++] = "HOME=/"; in call_sbin_request_key()
177 envp[i++] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in call_sbin_request_key()
178 envp[i] = NULL; in call_sbin_request_key()
193 ret = call_usermodehelper_keys(argv[0], argv, envp, keyring, in call_sbin_request_key()