summaryrefslogtreecommitdiff
path: root/include/linux/fdtable.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-10 17:48:01 +0200
committerChristian Brauner <brauner@kernel.org>2026-10-05 13:11:48 +0200
commitae6c2e72e5ee53e03b17f2793c067fc9d41bdfe9 (patch)
tree5bdf256976f3d6964b61b42b7dae8ed375515472 /include/linux/fdtable.h
parent31116e528f19545220250209fc5ee71a5a2295ec (diff)
downloadlinux-next-ae6c2e72e5ee53e03b17f2793c067fc9d41bdfe9.tar.gz
linux-next-ae6c2e72e5ee53e03b17f2793c067fc9d41bdfe9.zip
fs: move unshare_fd() to fs/file.c
Move unshare_fd() where the rest of the descriptor table lifecycle helpers live. No functional changes. Link: https://patch.msgid.link/20260910-work-coredump-unlock-self-v4-3-a5c1800dc930@kernel.org Reviewed-by: NeilBrown <neil@brown.name> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/fdtable.h')
-rw-r--r--include/linux/fdtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h
index 270ee830f206..2bd8adb194b3 100644
--- a/include/linux/fdtable.h
+++ b/include/linux/fdtable.h
@@ -102,6 +102,7 @@ struct task_struct;
void put_files_struct(struct files_struct *fs);
void switch_files_struct(struct task_struct *tsk, struct files_struct *files);
int unshare_files(void);
+int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp);
enum fd_range_flags {
/* Leave behind all descriptors outside of the specified range. */
FD_RANGE_EXCEPT = (1U << 0),