/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | condition.c | 54 * @envc: Length of @envp. 61 const int envc, const struct tomoyo_envp *envp, in tomoyo_envp() 72 for (i = 0; i < envc; envp++, checked++, i++) { in tomoyo_envp() 100 * @envc: Length of @envp. 107 const u16 envc, const struct tomoyo_envp *envp) in tomoyo_scan_bprm() 116 int envp_count = bprm->envc; in tomoyo_scan_bprm() 121 if (argc + envc <= sizeof(local_checked)) { in tomoyo_scan_bprm() 125 checked = kzalloc(argc + envc, GFP_NOFS); in tomoyo_scan_bprm() 173 envc, envp, in tomoyo_scan_bprm() 206 for (i = 0; i < envc; env in tomoyo_scan_bprm() 60 tomoyo_envp(const char *env_name, const char *env_value, const int envc, const struct tomoyo_envp *envp, u8 *checked) tomoyo_envp() argument 105 tomoyo_scan_bprm(struct tomoyo_execve *ee, const u16 argc, const struct tomoyo_argv *argv, const u16 envc, const struct tomoyo_envp *envp) tomoyo_scan_bprm() argument 779 u16 envc; tomoyo_condition() local [all...] |
H A D | gc.c | 285 const u16 envc = cond->envc; in tomoyo_del_condition() local 304 for (i = 0; i < envc; envp++, i++) { in tomoyo_del_condition()
|
H A D | audit.c | 33 int envp_count = bprm->envc; in tomoyo_print_bprm() 267 /* +80 is for " exec={ realpath=\"%s\" argc=%d envc=%d %s }" */ in tomoyo_init_log() 284 " exec={ realpath=\"%s\" argc=%d envc=%d %s }", in tomoyo_init_log() 285 realpath, bprm->argc, bprm->envc, bprm_info); in tomoyo_init_log()
|
H A D | domain.c | 626 int envp_count = bprm->envc; in tomoyo_environ()
|
H A D | common.h | 81 TOMOYO_EXEC_ENVC, /* "struct linux_binprm *"->envc */ 659 u16 envc; /* Number of "struct tomoyo_envp". */ member 667 * struct tomoyo_envp envp[envc];
|
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | condition.c | 54 * @envc: Length of @envp. 61 const int envc, const struct tomoyo_envp *envp, in tomoyo_envp() 72 for (i = 0; i < envc; envp++, checked++, i++) { in tomoyo_envp() 100 * @envc: Length of @envp. 107 const u16 envc, const struct tomoyo_envp *envp) in tomoyo_scan_bprm() 116 int envp_count = bprm->envc; in tomoyo_scan_bprm() 121 if (argc + envc <= sizeof(local_checked)) { in tomoyo_scan_bprm() 125 checked = kzalloc(argc + envc, GFP_NOFS); in tomoyo_scan_bprm() 173 envc, envp, in tomoyo_scan_bprm() 206 for (i = 0; i < envc; env in tomoyo_scan_bprm() 60 tomoyo_envp(const char *env_name, const char *env_value, const int envc, const struct tomoyo_envp *envp, u8 *checked) tomoyo_envp() argument 105 tomoyo_scan_bprm(struct tomoyo_execve *ee, const u16 argc, const struct tomoyo_argv *argv, const u16 envc, const struct tomoyo_envp *envp) tomoyo_scan_bprm() argument 779 u16 envc; tomoyo_condition() local [all...] |
H A D | gc.c | 285 const u16 envc = cond->envc; in tomoyo_del_condition() local 304 for (i = 0; i < envc; envp++, i++) { in tomoyo_del_condition()
|
H A D | audit.c | 33 int envp_count = bprm->envc; in tomoyo_print_bprm() 267 /* +80 is for " exec={ realpath=\"%s\" argc=%d envc=%d %s }" */ in tomoyo_init_log() 284 " exec={ realpath=\"%s\" argc=%d envc=%d %s }", in tomoyo_init_log() 285 realpath, bprm->argc, bprm->envc, bprm_info); in tomoyo_init_log()
|
H A D | domain.c | 624 int envp_count = bprm->envc; in tomoyo_environ()
|
H A D | common.h | 81 TOMOYO_EXEC_ENVC, /* "struct linux_binprm *"->envc */ 659 u16 envc; /* Number of "struct tomoyo_envp". */ member 667 * struct tomoyo_envp envp[envc];
|
/kernel/linux/linux-6.6/tools/objtool/ |
H A D | builtin-check.c | 105 int envc; in cmd_parse_options() local 110 for (envc = 1; envc < ARRAY_SIZE(envv); ) { in cmd_parse_options() 111 envv[envc++] = env; in cmd_parse_options() 119 parse_options(envc, envv, check_options, env_usage, 0); in cmd_parse_options()
|
/kernel/linux/linux-5.10/fs/ |
H A D | binfmt_aout.c | 65 int envc = bprm->envc; in create_aout_tables() local 81 sp -= envc+1; in create_aout_tables() 100 while (envc-->0) { in create_aout_tables()
|
H A D | binfmt_flat.c | 132 sp -= bprm->envc + 1; in create_flat_tables() 165 for (i = bprm->envc; i > 0; i--) { in create_flat_tables() 978 stack_len += (bprm->envc + 1) * sizeof(char *); /* the envp array */ in load_flat_binary()
|
H A D | exec.c | 505 ptr_size = (max(bprm->argc, 1) + bprm->envc) * sizeof(void *); in bprm_stack_limits() 1919 bprm->envc = retval; in do_execveat_common() 1930 retval = copy_strings(bprm->envc, envp, bprm); in do_execveat_common() 1988 bprm->envc = retval; in kernel_execve() 1999 retval = copy_strings_kernel(bprm->envc, envp, bprm); in kernel_execve()
|
H A D | binfmt_elf.c | 179 int envc = bprm->envc; in create_elf_tables() local 297 items = (argc + 1) + (envc + 1) + 1; in create_elf_tables() 341 while (envc-- > 0) { in create_elf_tables()
|
H A D | binfmt_elf_fdpic.c | 596 sp -= (bprm->envc + 1) * sizeof(char *); /* envv[] */ in create_elf_fdpic_tables() 672 csp -= (bprm->envc + 1) * sizeof(elf_caddr_t); in create_elf_fdpic_tables() 707 for (loop = bprm->envc; loop > 0; loop--) { in create_elf_fdpic_tables()
|
/kernel/linux/linux-5.10/arch/x86/ia32/ |
H A D | ia32_aout.c | 66 int argc = bprm->argc, envc = bprm->envc; in create_aout_tables() local 69 sp -= envc+1; in create_aout_tables() 87 while (envc-- > 0) { in create_aout_tables()
|
/kernel/liteos_a/kernel/extended/dynload/include/ |
H A D | los_load_elf.h | 101 INT32 envc;
member
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | binfmts.h | 54 int argc, envc; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | binfmts.h | 52 int argc, envc; member
|
/kernel/linux/linux-6.6/fs/ |
H A D | binfmt_flat.c | 115 sp -= bprm->envc + 1; in create_flat_tables() 148 for (i = bprm->envc; i > 0; i--) { in create_flat_tables() 875 stack_len += (bprm->envc + 1) * sizeof(char *); /* the envp array */ in load_flat_binary()
|
H A D | exec.c | 510 ptr_size = (max(bprm->argc, 1) + bprm->envc) * sizeof(void *); in bprm_stack_limits() 1937 bprm->envc = retval; in do_execveat_common() 1948 retval = copy_strings(bprm->envc, envp, bprm); in do_execveat_common() 2010 bprm->envc = retval; in kernel_execve() 2021 retval = copy_strings_kernel(bprm->envc, envp, bprm); in kernel_execve()
|
H A D | binfmt_elf.c | 182 int envc = bprm->envc; in create_elf_tables() local 307 items = (argc + 1) + (envc + 1) + 1; in create_elf_tables() 351 while (envc-- > 0) { in create_elf_tables()
|
H A D | binfmt_elf_fdpic.c | 597 sp -= (bprm->envc + 1) * sizeof(char *); /* envv[] */ in create_elf_fdpic_tables() 675 csp -= (bprm->envc + 1) * sizeof(elf_caddr_t); in create_elf_fdpic_tables() 710 for (loop = bprm->envc; loop > 0; loop--) { in create_elf_fdpic_tables()
|
/kernel/liteos_a/kernel/extended/dynload/src/ |
H A D | los_load_elf.c | 823 loadInfo->envc = OsGetParamNum(envp);
in OsSetArgParams() 831 ret = OsCopyParams(loadInfo, loadInfo->envc, envp);
in OsSetArgParams() 848 INT32 items = (loadInfo->argc + 1) + (loadInfo->envc + 1) + 1;
in OsPutParamToStack() 867 (OsPutUserArgv(&loadInfo->argStart, &argsPtr, loadInfo->envc) != LOS_OK)) {
in OsPutParamToStack()
|