-
- Downloads
fs: add do_fchownat(), ksys_fchown() helpers and ksys_{,l}chown() wrappers
Using the fs-interal do_fchownat() wrapper allows us to get rid of fs-internal calls to the sys_fchownat() syscall. Introducing the ksys_fchown() helper and the ksys_{,}chown() wrappers allows us to avoid the in-kernel calls to the sys_{,l,f}chown() syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_{,l,f}chown(). This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/20180325162527.GA17492@light.dominikbrodowski.net Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by:Dominik Brodowski <linux@dominikbrodowski.net>
Showing
- arch/s390/kernel/compat_linux.c 3 additions, 3 deletionsarch/s390/kernel/compat_linux.c
- fs/internal.h 2 additions, 0 deletionsfs/internal.h
- fs/open.c 17 additions, 6 deletionsfs/open.c
- include/linux/syscalls.h 17 additions, 0 deletionsinclude/linux/syscalls.h
- init/initramfs.c 4 additions, 4 deletionsinit/initramfs.c
- kernel/uid16.c 3 additions, 3 deletionskernel/uid16.c
Loading
Please register or sign in to comment