Message ID | cover.1665752531.git.fweimer@redhat.com |
---|---|
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A550E3856DD6 for <patchwork@sourceware.org>; Fri, 14 Oct 2022 13:06:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A550E3856DD6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665752791; bh=juNTTb6QJLmRvEeUe3f82LoDMnkI0wWfbc9he5ltlQs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=myd3K2CqliZuWgOiJRYU2WOIeSmH2qlmOGwYCPUOXYur6/9tXSOjXa+fvzv3L/igr ZC2LSre0B1GfoBEW7djWo35KyDW0iuwiXEHf7texRfV7NF0GOyTinWg4yDhzaDsaFb Huy7516LqPIjiIhR5hrcinamECpNHvLE4/dhRq0Y= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 7DD133858C83 for <libc-alpha@sourceware.org>; Fri, 14 Oct 2022 13:06:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7DD133858C83 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-137-piXAfpF5MoWWh1_dk2OdUw-1; Fri, 14 Oct 2022 09:06:08 -0400 X-MC-Unique: piXAfpF5MoWWh1_dk2OdUw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 13F3F29324AC for <libc-alpha@sourceware.org>; Fri, 14 Oct 2022 13:06:08 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B0053C15BB9 for <libc-alpha@sourceware.org>; Fri, 14 Oct 2022 13:06:07 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH 0/2] Introduce per-thread file system properties on Linux X-From-Line: 38e806dffcb68772bdab0ceff30aa4f1c643f93a Mon Sep 17 00:00:00 2001 Message-Id: <cover.1665752531.git.fweimer@redhat.com> Date: Fri, 14 Oct 2022 15:06:06 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Florian Weimer via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Florian Weimer <fweimer@redhat.com> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Introduce per-thread file system properties on Linux
|
|
Message
Florian Weimer
Oct. 14, 2022, 1:06 p.m. UTC
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