From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH 0/2] Introduce per-thread file system properties on Linux
Date: Fri, 14 Oct 2022 15:06:06 +0200 [thread overview]
Message-ID: <cover.1665752531.git.fweimer@redhat.com> (raw)
This patch introduces per-thread chdir/chroot/umask, as used by some
file server software.
The interface can be generalized, I plan to use it for private
per-thread UID/GID, too.
Thanks,
Florian
Florian Weimer (2):
support: Add the xfchdir function
Linux: Implement per-thread file system attributes
NEWS | 5 +
manual/threads.texi | 92 +++++
nptl/Makefile | 6 +-
nptl/Versions | 4 +
nptl/pthread_attr_getperthreadfs_np.c | 32 ++
nptl/pthread_attr_setperthreadfs_np.c | 39 +++
nptl/pthread_create.c | 20 +-
nptl/tst-pthread-perthreadfs-chroot.c | 255 ++++++++++++++
nptl/tst-pthread-perthreadfs.c | 328 ++++++++++++++++++
support/Makefile | 1 +
support/xfchdir.c | 28 ++
support/xunistd.h | 1 +
sysdeps/nptl/internaltypes.h | 12 +
sysdeps/nptl/pthread.h | 26 +-
sysdeps/unix/sysv/linux/aarch64/libc.abilist | 2 +
sysdeps/unix/sysv/linux/alpha/libc.abilist | 2 +
sysdeps/unix/sysv/linux/arc/libc.abilist | 2 +
sysdeps/unix/sysv/linux/arm/be/libc.abilist | 2 +
sysdeps/unix/sysv/linux/arm/le/libc.abilist | 2 +
sysdeps/unix/sysv/linux/csky/libc.abilist | 2 +
sysdeps/unix/sysv/linux/hppa/libc.abilist | 2 +
sysdeps/unix/sysv/linux/i386/libc.abilist | 2 +
sysdeps/unix/sysv/linux/ia64/libc.abilist | 2 +
.../sysv/linux/loongarch/lp64/libc.abilist | 2 +
.../sysv/linux/m68k/coldfire/libc.abilist | 2 +
.../unix/sysv/linux/m68k/m680x0/libc.abilist | 2 +
.../sysv/linux/microblaze/be/libc.abilist | 2 +
.../sysv/linux/microblaze/le/libc.abilist | 2 +
.../sysv/linux/mips/mips32/fpu/libc.abilist | 2 +
.../sysv/linux/mips/mips32/nofpu/libc.abilist | 2 +
.../sysv/linux/mips/mips64/n32/libc.abilist | 2 +
.../sysv/linux/mips/mips64/n64/libc.abilist | 2 +
sysdeps/unix/sysv/linux/nios2/libc.abilist | 2 +
sysdeps/unix/sysv/linux/or1k/libc.abilist | 2 +
.../linux/powerpc/powerpc32/fpu/libc.abilist | 2 +
.../powerpc/powerpc32/nofpu/libc.abilist | 2 +
.../linux/powerpc/powerpc64/be/libc.abilist | 2 +
.../linux/powerpc/powerpc64/le/libc.abilist | 2 +
.../unix/sysv/linux/riscv/rv32/libc.abilist | 2 +
.../unix/sysv/linux/riscv/rv64/libc.abilist | 2 +
.../unix/sysv/linux/s390/s390-32/libc.abilist | 2 +
.../unix/sysv/linux/s390/s390-64/libc.abilist | 2 +
sysdeps/unix/sysv/linux/sh/be/libc.abilist | 2 +
sysdeps/unix/sysv/linux/sh/le/libc.abilist | 2 +
.../sysv/linux/sparc/sparc32/libc.abilist | 2 +
.../sysv/linux/sparc/sparc64/libc.abilist | 2 +
.../unix/sysv/linux/x86_64/64/libc.abilist | 2 +
.../unix/sysv/linux/x86_64/x32/libc.abilist | 2 +
48 files changed, 907 insertions(+), 10 deletions(-)
create mode 100644 nptl/pthread_attr_getperthreadfs_np.c
create mode 100644 nptl/pthread_attr_setperthreadfs_np.c
create mode 100644 nptl/tst-pthread-perthreadfs-chroot.c
create mode 100644 nptl/tst-pthread-perthreadfs.c
create mode 100644 support/xfchdir.c
base-commit: 2c42257314536b94cc8d52edede86e94e98c1436
--
2.37.3
next reply other threads:[~2022-10-14 13:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 13:06 Florian Weimer [this message]
2022-10-14 13:06 ` [PATCH 1/2] support: Add the xfchdir function Florian Weimer
2022-10-14 13:06 ` [PATCH 2/2] Linux: Implement per-thread file system attributes Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1665752531.git.fweimer@redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).