/linux-6.3-rc2/drivers/s390/net/ |
A 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.3-rc2/security/tomoyo/ |
A 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()
|
A D | condition.c | 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() 173 envc, envp, in tomoyo_scan_bprm() 213 if ((!envp->value && !envp->is_not) || in tomoyo_scan_bprm() 214 (envp->value && envp->is_not)) in tomoyo_scan_bprm() 342 envp->name = name; in tomoyo_parse_envp() 343 envp->value = value; in tomoyo_parse_envp() 580 if (!envp) { in tomoyo_get_condition() [all …]
|
/linux-6.3-rc2/arch/um/os-Linux/ |
A 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()
|
A 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.3-rc2/drivers/pnp/pnpbios/ |
A 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.3-rc2/tools/testing/selftests/x86/ |
A 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.3-rc2/drivers/net/wwan/iosm/ |
A 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.3-rc2/include/linux/ |
A 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.3-rc2/tools/testing/selftests/exec/ |
A 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()
|
A 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.3-rc2/drivers/gpu/drm/ |
A D | drm_sysfs.c | 384 char *envp[] = { event_string, NULL }; in drm_sysfs_lease_event() local 388 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_lease_event() 405 char *envp[] = { event_string, NULL }; in drm_sysfs_hotplug_event() local 409 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_hotplug_event() 425 char *envp[] = { hotplug_str, conn_id, NULL }; in drm_sysfs_connector_hotplug_event() local 434 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_connector_hotplug_event() 453 char *envp[4] = { hotplug_str, conn_id, prop_id, NULL }; in drm_sysfs_connector_status_event() local 465 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_connector_status_event()
|
/linux-6.3-rc2/kernel/ |
A D | umh.c | 112 (const char *const *)sub_info->envp); in call_usermodehelper_exec_async() 357 char **envp, gfp_t gfp_mask, in call_usermodehelper_setup() argument 375 sub_info->envp = envp; in call_usermodehelper_setup() 483 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument 488 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
|
A 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.3-rc2/lib/ |
A 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()
|
A D | kobject.c | 472 char *envp[2]; in kobject_rename() local 493 envp[0] = devpath_string; in kobject_rename() 494 envp[1] = NULL; in kobject_rename() 513 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_rename() 536 char *envp[2]; in kobject_move() local 559 envp[0] = devpath_string; in kobject_move() 560 envp[1] = NULL; in kobject_move() 568 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_move()
|
/linux-6.3-rc2/fs/ |
A D | exec.c | 1886 struct user_arg_ptr envp, in do_execveat_common() argument 1925 retval = count(envp, MAX_ARG_STRINGS); in do_execveat_common() 1998 retval = count_strings_kernel(envp); in kernel_execve() 2057 struct user_arg_ptr envp = { in compat_do_execve() local 2073 struct user_arg_ptr envp = { in compat_do_execveat() local 2108 const char __user *const __user *, envp) in SYSCALL_DEFINE3() argument 2116 const char __user *const __user *, envp, in SYSCALL_DEFINE5() argument 2121 argv, envp, flags); in SYSCALL_DEFINE5() 2127 const compat_uptr_t __user *, envp) in COMPAT_SYSCALL_DEFINE3() argument 2135 const compat_uptr_t __user *, envp, in COMPAT_SYSCALL_DEFINE5() argument [all …]
|
/linux-6.3-rc2/drivers/vfio/mdev/ |
A 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.3-rc2/security/keys/ |
A 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.3-rc2/drivers/video/backlight/ |
A 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.3-rc2/fs/ocfs2/ |
A 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.3-rc2/fs/nfs/ |
A 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.3-rc2/tools/testing/selftests/rlimits/ |
A 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.3-rc2/drivers/greybus/ |
A 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.3-rc2/drivers/leds/ |
A D | led-triggers.c | 161 char *envp[2]; in led_trigger_set() local 212 envp[0] = event; in led_trigger_set() 213 envp[1] = NULL; in led_trigger_set() 214 if (kobject_uevent_env(&led_cdev->dev->kobj, KOBJ_CHANGE, envp)) in led_trigger_set()
|