From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 289B1C433E3 for ; Sun, 19 Jul 2020 18:18:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 19F4422B4D for ; Sun, 19 Jul 2020 18:18:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbgGSSR4 (ORCPT ); Sun, 19 Jul 2020 14:17:56 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39120 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgGSSR4 (ORCPT ); Sun, 19 Jul 2020 14:17:56 -0400 Received: from ip5f5af08c.dynamic.kabel-deutschland.de ([95.90.240.140] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jxDsQ-0003b6-HU; Sun, 19 Jul 2020 18:17:30 +0000 Date: Sun, 19 Jul 2020 20:17:29 +0200 From: Christian Brauner To: Adrian Reber , Nicolas Viennot Cc: Eric Biederman , Pavel Emelyanov , Oleg Nesterov , Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , =?utf-8?B?TWljaGHFgiBDxYJhcGnFhHNraQ==?= , Kamil Yurtsever , Dirk Petersen , Christine Flood , Casey Schaufler , Mike Rapoport , Radostin Stoyanov , Cyrill Gorcunov , Serge Hallyn , Stephen Smalley , Sargun Dhillon , Arnd Bergmann , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, selinux@vger.kernel.org, Eric Paris , Jann Horn , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v6 0/7] capabilities: Introduce CAP_CHECKPOINT_RESTORE Message-ID: <20200719181729.6f37lilhvov5a74f@wittgenstein> References: <20200719100418.2112740-1-areber@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200719100418.2112740-1-areber@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Sun, Jul 19, 2020 at 12:04:10PM +0200, Adrian Reber wrote: > This is v6 of the 'Introduce CAP_CHECKPOINT_RESTORE' patchset. The > changes to v5 are: > > * split patch dealing with /proc/self/exe into two patches: > * first patch to enable changing it with CAP_CHECKPOINT_RESTORE > and detailed history in the commit message > * second patch changes -EINVAL to -EPERM > * use kselftest_harness.h infrastructure for test > * replace if (!capable(CAP_SYS_ADMIN) || !capable(CAP_CHECKPOINT_RESTORE)) > with if (!checkpoint_restore_ns_capable(&init_user_ns)) > > Adrian Reber (5): > capabilities: Introduce CAP_CHECKPOINT_RESTORE > pid: use checkpoint_restore_ns_capable() for set_tid > pid_namespace: use checkpoint_restore_ns_capable() for ns_last_pid > proc: allow access in init userns for map_files with > CAP_CHECKPOINT_RESTORE > selftests: add clone3() CAP_CHECKPOINT_RESTORE test > > Nicolas Viennot (2): > prctl: Allow local CAP_CHECKPOINT_RESTORE to change /proc/self/exe > prctl: exe link permission error changed from -EINVAL to -EPERM > > fs/proc/base.c | 8 +- > include/linux/capability.h | 6 + > include/uapi/linux/capability.h | 9 +- > kernel/pid.c | 2 +- > kernel/pid_namespace.c | 2 +- > kernel/sys.c | 13 +- > security/selinux/include/classmap.h | 5 +- > tools/testing/selftests/clone3/.gitignore | 1 + > tools/testing/selftests/clone3/Makefile | 4 +- > .../clone3/clone3_cap_checkpoint_restore.c | 177 ++++++++++++++++++ > 10 files changed, 212 insertions(+), 15 deletions(-) > create mode 100644 tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c > > base-commit: d31958b30ea3b7b6e522d6bf449427748ad45822 Adrian, Nicolas thank you! I grabbed the series to run the various core test-suites we've added over the last year and pushed it to https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=cap_checkpoint_restore for now to let kbuild/ltp chew on it for a bit. Thanks! Christian