projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7352c6f
)
exec: convert begin_new_exec() to FD_ADD()
author
Christian Brauner
<brauner@kernel.org>
Sun, 23 Nov 2025 16:33:39 +0000
(17:33 +0100)
committer
Christian Brauner
<brauner@kernel.org>
Fri, 28 Nov 2025 11:42:33 +0000
(12:42 +0100)
Link:
https://patch.msgid.link/20251123-work-fd-prepare-v4-21-b6efa1706cfd@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/exec.c
patch
|
blob
|
history
diff --git
a/fs/exec.c
b/fs/exec.c
index
6b70c67
..
621898a
100644
(file)
--- a/
fs/exec.c
+++ b/
fs/exec.c
@@
-1280,10
+1280,9
@@
int begin_new_exec(struct linux_binprm * bprm)
/* Pass the opened binary to the interpreter. */
if (bprm->have_execfd) {
- retval =
get_unused_fd_flags(0
);
+ retval =
FD_ADD(0, bprm->executable
);
if (retval < 0)
goto out_unlock;
- fd_install(retval, bprm->executable);
bprm->executable = NULL;
bprm->execfd = retval;
}