Home
last modified time | relevance | path

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

1234

/linux/drivers/s390/net/
A Dsmsgiucv_app.c54 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/security/tomoyo/
A Dcondition.c78 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 …]
A Dload_policy.c89 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()
/linux/arch/um/os-Linux/
A Delf_aux.c26 __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 Dmain.c105 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/drivers/pnp/pnpbios/
A Dcore.c89 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/tools/testing/selftests/x86/
A Dtest_syscall_vdso.c28 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/drivers/net/wwan/iosm/
A Diosm_ipc_uevent.c16 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/include/linux/
A Dumh.h24 char **envp; member
33 call_usermodehelper(const char *path, char **argv, char **envp, int wait);
36 call_usermodehelper_setup(const char *path, char **argv, char **envp,
/linux/fs/
A Dexec.c1864 struct user_arg_ptr envp, in do_execveat_common() argument
1900 retval = count(envp, MAX_ARG_STRINGS); in do_execveat_common()
1954 retval = count_strings_kernel(envp); in kernel_execve()
2013 struct user_arg_ptr envp = { in compat_do_execve() local
2029 struct user_arg_ptr envp = { in compat_do_execveat() local
2064 const char __user *const __user *, envp) in SYSCALL_DEFINE3() argument
2072 const char __user *const __user *, envp, in SYSCALL_DEFINE5() argument
2077 argv, envp, flags); in SYSCALL_DEFINE5()
2083 const compat_uptr_t __user *, envp) in COMPAT_SYSCALL_DEFINE3() argument
2091 const compat_uptr_t __user *, envp, in COMPAT_SYSCALL_DEFINE5() argument
[all …]
A Dbinfmt_aout.c62 char __user * __user *envp; in create_aout_tables() local
82 envp = (char __user * __user *) sp; in create_aout_tables()
86 put_user((unsigned long) envp,--sp); in create_aout_tables()
102 put_user(p,envp++); in create_aout_tables()
107 put_user(NULL,envp); in create_aout_tables()
/linux/lib/
A Dkobject_uevent.c222 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 Dkobject.c496 char *envp[2]; in kobject_rename() local
517 envp[0] = devpath_string; in kobject_rename()
518 envp[1] = NULL; in kobject_rename()
537 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_rename()
560 char *envp[2]; in kobject_move() local
583 envp[0] = devpath_string; in kobject_move()
584 envp[1] = NULL; in kobject_move()
592 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_move()
/linux/kernel/
A Dumh.c114 (const char *const *)sub_info->envp); in call_usermodehelper_exec_async()
359 char **envp, gfp_t gfp_mask, in call_usermodehelper_setup() argument
377 sub_info->envp = envp; in call_usermodehelper_setup()
474 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument
479 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
A Dkmod.c72 static char *envp[] = { in call_modprobe() local
93 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe()
/linux/drivers/gpu/drm/
A Ddrm_sysfs.c383 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()
427 char *envp[4] = { hotplug_str, conn_id, prop_id, NULL }; in drm_sysfs_connector_status_event() local
439 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_connector_status_event()
/linux/tools/testing/selftests/exec/
A Dexecveat.c27 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/arch/x86/ia32/
A Dia32_aout.c65 u32 __user *argv, *envp, *sp; in create_aout_tables() local
70 envp = sp; in create_aout_tables()
73 put_user((unsigned long) envp, --sp); in create_aout_tables()
90 put_user((u32)(unsigned long)p, envp++); in create_aout_tables()
95 put_user(0, envp); in create_aout_tables()
/linux/security/keys/
A Drequest_key.c96 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/drivers/vfio/mdev/
A Dmdev_core.c129 char *envp[] = { env_string, NULL }; in mdev_register_device() local
183 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); in mdev_register_device()
209 char *envp[] = { env_string, NULL }; in mdev_unregister_device() local
235 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); in mdev_unregister_device()
/linux/drivers/video/backlight/
A Dbacklight.c163 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/fs/ocfs2/
A Dstackglue.c419 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/fs/nfs/
A Dcache_lib.c37 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/drivers/leds/
A Dled-triggers.c161 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()
/linux/tools/testing/selftests/rlimits/
A Drlimits-per-userns.c77 char *const envp[] = { "I_AM_SERVICE=1", NULL }; in fork_child() local
81 execve(service_prog, argv, envp); in fork_child()

Completed in 33 milliseconds

1234