/linux-6.1.9/drivers/s390/net/ |
D | smsgiucv_app.c | 54 char *envp[4]; member 84 ev->envp[0] = ev->buf; in smsg_app_event_alloc() 85 ev->envp[1] = ev->envp[0] + ENV_SENDER_LEN; in smsg_app_event_alloc() 86 ev->envp[2] = ev->envp[1] + ENV_PREFIX_LEN; in smsg_app_event_alloc() 87 ev->envp[3] = NULL; in smsg_app_event_alloc() 90 snprintf(ev->envp[0], ENV_SENDER_LEN, ENV_SENDER_STR "%s", from); in smsg_app_event_alloc() 91 snprintf(ev->envp[1], ENV_PREFIX_LEN, ENV_PREFIX_STR "%s", SMSG_PREFIX); in smsg_app_event_alloc() 92 snprintf(ev->envp[2], ENV_TEXT_LEN(msg), ENV_TEXT_STR "%s", msg); in smsg_app_event_alloc() 113 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, p->envp); in smsg_event_work_fn()
|
/linux-6.1.9/security/tomoyo/ |
D | load_policy.c | 89 char *envp[3]; in tomoyo_load_policy() local 103 envp[0] = "HOME=/"; in tomoyo_load_policy() 104 envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in tomoyo_load_policy() 105 envp[2] = NULL; in tomoyo_load_policy() 106 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); in tomoyo_load_policy()
|
D | condition.c | 61 const int envc, const struct tomoyo_envp *envp, in tomoyo_envp() argument 72 for (i = 0; i < envc; envp++, checked++, i++) { in tomoyo_envp() 75 if (!tomoyo_path_matches_pattern(&name, envp->name)) in tomoyo_envp() 78 if (envp->value) { in tomoyo_envp() 80 envp->value); in tomoyo_envp() 81 if (envp->is_not) in tomoyo_envp() 85 if (!envp->is_not) in tomoyo_envp() 107 const u16 envc, const struct tomoyo_envp *envp) in tomoyo_scan_bprm() argument 173 envc, envp, in tomoyo_scan_bprm() 206 for (i = 0; i < envc; envp++, i++) { in tomoyo_scan_bprm() [all …]
|
/linux-6.1.9/arch/um/os-Linux/ |
D | elf_aux.c | 26 __init void scan_elf_aux( char **envp) in scan_elf_aux() argument 31 while ( *envp++ != NULL) ; in scan_elf_aux() 33 for ( auxv = (elf_auxv_t *)envp; auxv->a_type != AT_NULL; auxv++) { in scan_elf_aux() 38 if (__kernel_vsyscall < (unsigned long) envp) in scan_elf_aux() 44 if (vsyscall_ehdr < (unsigned long) envp) in scan_elf_aux()
|
D | main.c | 105 extern void scan_elf_aux( char **envp); 107 int __init main(int argc, char **argv, char **envp) in main() argument 140 scan_elf_aux(envp); in main()
|
/linux-6.1.9/drivers/pnp/pnpbios/ |
D | core.c | 89 char *argv[3], **envp, *buf, *scratch; in pnp_dock_event() local 92 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL))) in pnp_dock_event() 95 kfree(envp); in pnp_dock_event() 108 envp[i++] = "HOME=/"; in pnp_dock_event() 109 envp[i++] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in pnp_dock_event() 113 envp[i++] = "DEBUG=kernel"; in pnp_dock_event() 121 envp[i++] = scratch; in pnp_dock_event() 125 envp[i++] = scratch; in pnp_dock_event() 128 envp[i] = NULL; in pnp_dock_event() 130 value = call_usermodehelper(sbin_pnpbios, argv, envp, UMH_WAIT_EXEC); in pnp_dock_event() [all …]
|
/linux-6.1.9/tools/testing/selftests/x86/ |
D | test_syscall_vdso.c | 28 int main(int argc, char **argv, char **envp) in main() argument 36 long get_syscall(char **envp) in get_syscall() argument 39 while (*envp++ != NULL) in get_syscall() 41 for (auxv = (void *)envp; auxv->a_type != AT_NULL; auxv++) in get_syscall() 376 int main(int argc, char **argv, char **envp) in main() argument 392 syscall_addr = get_syscall(envp); in main()
|
/linux-6.1.9/drivers/net/wwan/iosm/ |
D | iosm_ipc_uevent.c | 16 char *envp[2] = { NULL, NULL }; in ipc_uevent_work() local 20 envp[0] = info->uevent; in ipc_uevent_work() 22 if (kobject_uevent_env(&info->dev->kobj, KOBJ_CHANGE, envp)) in ipc_uevent_work()
|
/linux-6.1.9/include/linux/ |
D | umh.h | 25 char **envp; member 34 call_usermodehelper(const char *path, char **argv, char **envp, int wait); 37 call_usermodehelper_setup(const char *path, char **argv, char **envp,
|
/linux-6.1.9/tools/testing/selftests/exec/ |
D | null-argv.c | 47 int main(int argc, char *argv[], char *envp[]) in main() argument 73 FORK(execve(argv[0], NULL, envp)); in main() 75 FORK(execve(argv[0], args, envp)); in main()
|
D | execveat.c | 27 static char *envp[] = { "IN_TEST=yes", NULL, NULL }; variable 30 static int execveat_(int fd, const char *path, char **argv, char **envp, in execveat_() argument 34 return syscall(__NR_execveat, fd, path, argv, envp, flags); in execveat_() 51 rc = execveat_(fd, path, argv, envp, flags); in _check_execveat_fail() 88 rc = execveat_(fd, path, argv, envp, flags); in check_execveat_invoked_rc() 426 envp[1] = "VERBOSE=1"; in main()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_sysfs.c | 383 char *envp[] = { event_string, NULL }; in drm_sysfs_lease_event() local 387 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_lease_event() 404 char *envp[] = { event_string, NULL }; in drm_sysfs_hotplug_event() local 408 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_hotplug_event() 424 char *envp[] = { hotplug_str, conn_id, NULL }; in drm_sysfs_connector_hotplug_event() local 433 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_connector_hotplug_event() 452 char *envp[4] = { hotplug_str, conn_id, prop_id, NULL }; in drm_sysfs_connector_status_event() local 464 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_connector_status_event()
|
/linux-6.1.9/kernel/ |
D | umh.c | 115 (const char *const *)sub_info->envp); in call_usermodehelper_exec_async() 360 char **envp, gfp_t gfp_mask, in call_usermodehelper_setup() argument 378 sub_info->envp = envp; in call_usermodehelper_setup() 480 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument 485 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
|
D | kmod.c | 72 static char *envp[] = { in call_modprobe() local 93 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe()
|
/linux-6.1.9/lib/ |
D | kobject_uevent.c | 222 r = kobject_uevent_env(kobj, action, env->envp); in kobject_synth_uevent() 426 if (strncmp(env->envp[i], modalias_prefix, in zap_modalias_env() 432 len = strlen(env->envp[i]) + 1; in zap_modalias_env() 435 memmove(env->envp[i], env->envp[i + 1], in zap_modalias_env() 439 env->envp[j] = env->envp[j + 1] - len; in zap_modalias_env() 615 env->envp, GFP_KERNEL, in kobject_uevent_env() 659 if (env->envp_idx >= ARRAY_SIZE(env->envp)) { in add_uevent_var() 675 env->envp[env->envp_idx++] = &env->buf[env->buflen]; in add_uevent_var()
|
D | kobject.c | 464 char *envp[2]; in kobject_rename() local 485 envp[0] = devpath_string; in kobject_rename() 486 envp[1] = NULL; in kobject_rename() 505 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_rename() 528 char *envp[2]; in kobject_move() local 551 envp[0] = devpath_string; in kobject_move() 552 envp[1] = NULL; in kobject_move() 560 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_move()
|
/linux-6.1.9/fs/ |
D | exec.c | 1868 struct user_arg_ptr envp, in do_execveat_common() argument 1907 retval = count(envp, MAX_ARG_STRINGS); in do_execveat_common() 1921 retval = copy_strings(bprm->envc, envp, bprm); in do_execveat_common() 1952 const char *const *argv, const char *const *envp) in kernel_execve() argument 1980 retval = count_strings_kernel(envp); in kernel_execve() 1994 retval = copy_strings_kernel(bprm->envc, envp, bprm); in kernel_execve() 2015 struct user_arg_ptr envp = { .ptr.native = __envp }; in do_execve() local 2016 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in do_execve() 2025 struct user_arg_ptr envp = { .ptr.native = __envp }; in do_execveat() local 2027 return do_execveat_common(fd, filename, argv, envp, flags); in do_execveat() [all …]
|
/linux-6.1.9/drivers/vfio/mdev/ |
D | mdev_core.c | 64 char *envp[] = { env_string, NULL }; in mdev_register_parent() local 90 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); in mdev_register_parent() 102 char *envp[] = { env_string, NULL }; in mdev_unregister_parent() local 112 kobject_uevent_env(&parent->dev->kobj, KOBJ_CHANGE, envp); in mdev_unregister_parent()
|
/linux-6.1.9/security/keys/ |
D | request_key.c | 96 static int call_usermodehelper_keys(const char *path, char **argv, char **envp, in call_usermodehelper_keys() argument 101 info = call_usermodehelper_setup(path, argv, envp, GFP_KERNEL, in call_usermodehelper_keys() 122 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(request_key, argv, envp, keyring, in call_sbin_request_key()
|
/linux-6.1.9/drivers/video/backlight/ |
D | backlight.c | 163 char *envp[2]; in backlight_generate_event() local 167 envp[0] = "SOURCE=sysfs"; in backlight_generate_event() 170 envp[0] = "SOURCE=hotkey"; in backlight_generate_event() 173 envp[0] = "SOURCE=unknown"; in backlight_generate_event() 176 envp[1] = NULL; in backlight_generate_event() 177 kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp); in backlight_generate_event()
|
/linux-6.1.9/fs/ocfs2/ |
D | stackglue.c | 419 char *argv[5], *envp[3]; in ocfs2_leave_group() local 428 envp[0] = "HOME=/"; in ocfs2_leave_group() 429 envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in ocfs2_leave_group() 430 envp[2] = NULL; in ocfs2_leave_group() 432 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); in ocfs2_leave_group()
|
/linux-6.1.9/fs/nfs/ |
D | cache_lib.c | 37 static char *envp[] = { "HOME=/", in nfs_cache_upcall() local 52 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in nfs_cache_upcall()
|
/linux-6.1.9/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 77 char *const envp[] = { "I_AM_SERVICE=1", NULL }; in fork_child() local 81 execve(service_prog, argv, envp); in fork_child()
|
/linux-6.1.9/drivers/greybus/ |
D | svc_watchdog.c | 47 static char *envp[] = { in greybus_reset() local 60 call_usermodehelper(start_path, argv, envp, UMH_WAIT_EXEC); in greybus_reset()
|
/linux-6.1.9/tools/thermal/thermometer/ |
D | thermometer.c | 421 static int thermometer_execute(int argc, char *argv[], char *const envp[], pid_t *pid) in thermometer_execute() argument 433 execvpe(argv[0], argv, envp); in thermometer_execute() 532 int main(int argc, char *argv[], char *const envp[]) in main() argument 562 if (thermometer_execute(argc - optind, &argv[optind], envp, &pid)) in main()
|