exec: remove argv_len from struct linux_binprm
Changes
2 files changed · +0 −4
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/exec.c | modified | +0 | −3 | View file |
| include/linux/binfmts.h | modified | +0 | −1 | View file |
fs/exec.c
View filediff --git a/fs/exec.c b/fs/exec.c
index b152029..7768453 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1268,7 +1268,6 @@ int do_execve(char * filename,
{
struct linux_binprm *bprm;
struct file *file;
- unsigned long env_p;
struct files_struct *displaced;
int retval;
@@ -1321,11 +1320,9 @@ int do_execve(char * filename,
if (retval < 0)
goto out;
- env_p = bprm->p;
retval = copy_strings(bprm->argc, argv, bprm);
if (retval < 0)
goto out;
- bprm->argv_len = env_p - bprm->p;
retval = search_binary_handler(bprm,regs);
if (retval >= 0) {
include/linux/binfmts.h
View filediff --git a/include/linux/binfmts.h b/include/linux/binfmts.h
index b7fc55e..1dd7567 100644
--- a/include/linux/binfmts.h
+++ b/include/linux/binfmts.h
@@ -48,7 +48,6 @@ struct linux_binprm{
unsigned interp_flags;
unsigned interp_data;
unsigned long loader, exec;
- unsigned long argv_len;
};
#define BINPRM_FLAGS_ENFORCE_NONDUMP_BIT 0