Linux kernel source tree
Find a file
Kees Cook 173817151b fs: Expand __receive_fd() to accept existing fd
Expand __receive_fd() with support for replace_fd() for the coming seccomp
"addfd" ioctl(). Add new wrapper receive_fd_replace() for the new behavior
and update existing wrappers to retain old behavior.

Thanks to Colin Ian King <colin.king@canonical.com> for pointing out an
uninitialized variable exposure in an earlier version of this patch.

Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Dmitry Kadashev <dkadashev@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Sargun Dhillon <sargun@sargun.me>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
2020-07-13 11:03:45 -07:00
arch seccomp: Use -1 marker for end of mode 1 syscall list 2020-07-10 16:01:52 -07:00
block
certs
crypto
Documentation
drivers
fs fs: Expand __receive_fd() to accept existing fd 2020-07-13 11:03:45 -07:00
include fs: Expand __receive_fd() to accept existing fd 2020-07-13 11:03:45 -07:00
init seccomp: Report number of loaded filters in /proc/$pid/status 2020-07-10 16:01:51 -07:00
ipc
kernel pidfd: Replace open-coded receive_fd() 2020-07-13 11:03:45 -07:00
lib
LICENSES
mm
net fs: Add receive_fd() wrapper for __receive_fd() 2020-07-13 11:03:44 -07:00
samples
scripts
security Add additional LSM hooks for SafeSetID 2020-06-14 11:39:31 -07:00
sound
tools selftests/seccomp: Check ENOSYS under tracing 2020-07-10 16:01:52 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.8-rc1 2020-06-14 12:45:04 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.