Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1048145ybm; Wed, 27 May 2020 14:52:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuWxH9UsyiXQHwo8zHaut4dfLAQq5TDwQb4hasLgyF2imqu9BpWgSlS8hrEMaZlXugeiHq X-Received: by 2002:a17:906:2dc8:: with SMTP id h8mr389161eji.108.1590616356939; Wed, 27 May 2020 14:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590616356; cv=none; d=google.com; s=arc-20160816; b=ta4j5vPAHVnpPtcYgm6K9IZmvLzBizWOUl+GxS7zyRWhqY3yJx6cZRVxgchltyhuNi tNF9xl9oDc/nnc8U/AXJ+02fik7ufpLtm7iPvHhFn6stc5fxLmbOVI4VT6KiQEUDO30A VvBwcaNwzErtieweuZaanfsU79O0ku92+Tgewk4etRCTy2QHAX93x+5/dhqp7yD5DHVx CZwXEO0sx7r5x494RpLLL/N46mrJHKjN3hwg5fmk3sKlxhI/tEHZRD0WxhURw9cetEDU sPUE2VHtR6fTYv4L2JGxDmKP3YC6NvnSBuPJGhoOTCgcg1tiWZQ/WyPBGifBDEdJ856j HDkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=uK4lVDtKJtMq9DO9X324pcDMRdV4ZWMidrWjmbbMkYs=; b=0gFUsf+9VjagYSTE6agceLZTR8WpbJA6SNO/pmanrHm56VMgJ3o8QLbPowx5W5dvK0 JPhWtHCskaTd4Ydde+aBLN1mZyf9pFV7El8vymP8lHZnsgMm1h6TCJInnJ8yrFhdZmDe 1xqPq7SJWtt/AFY+g4GPSqH+EF494HFf+42/i4MjEYoSXJe9qTSEnVufX1oVMWfxENYq i2CWqPj7/V234jgCS3OuOy2foV2hyPYQjOKUSDj727YpvaMxvKEOjZ89IBDROpviGq5/ wFncBPwoPaOo12lreKw0DqjddR2Mzjb5Wcw8U94Xr10AF0HzEPZRHVgW34L79gnU1vrW OtKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si2257652edt.279.2020.05.27.14.52.13; Wed, 27 May 2020 14:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391836AbgE0SF7 (ORCPT + 99 others); Wed, 27 May 2020 14:05:59 -0400 Received: from mxo2.dft.dmz.twosigma.com ([208.77.212.182]:56563 "EHLO mxo2.dft.dmz.twosigma.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389069AbgE0SF5 (ORCPT ); Wed, 27 May 2020 14:05:57 -0400 Received: from localhost (localhost [127.0.0.1]) by mxo2.dft.dmz.twosigma.com (Postfix) with ESMTP id 49XJfW6xgJz7t8y; Wed, 27 May 2020 18:05:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at twosigma.com Received: from mxo2.dft.dmz.twosigma.com ([127.0.0.1]) by localhost (mxo2.dft.dmz.twosigma.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qUylFl1ppg4g; Wed, 27 May 2020 18:05:55 +0000 (UTC) Received: from exmbdft5.ad.twosigma.com (exmbdft5.ad.twosigma.com [172.22.1.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mxo2.dft.dmz.twosigma.com (Postfix) with ESMTPS id 49XJfW65r7z3wZ5; Wed, 27 May 2020 18:05:55 +0000 (UTC) Received: from EXMBDFT11.ad.twosigma.com (172.23.162.14) by exmbdft5.ad.twosigma.com (172.22.1.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 27 May 2020 18:05:55 +0000 Received: from EXMBDFT11.ad.twosigma.com ([fe80::8d66:2326:5416:86a9]) by EXMBDFT11.ad.twosigma.com ([fe80::8d66:2326:5416:86a9%19]) with mapi id 15.00.1497.000; Wed, 27 May 2020 18:05:55 +0000 From: Nicolas Viennot To: Christian Brauner , Adrian Reber CC: "Eric W. Biederman" , Casey Schaufler , Pavel Emelyanov , Oleg Nesterov , Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , =?utf-8?B?TWljaGHFgiBDxYJhcGnFhHNraQ==?= , Kamil Yurtsever , "Dirk Petersen" , Christine Flood , 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 Subject: RE: [PATCH] capabilities: Introduce CAP_RESTORE Thread-Topic: [PATCH] capabilities: Introduce CAP_RESTORE Thread-Index: AQHWM2XfaDM8D7CUOUK8NWcR6t6ZmKi7+1qAgAAVMoCAACZxcA== Date: Wed, 27 May 2020 18:05:55 +0000 Message-ID: References: <20200522055350.806609-1-areber@redhat.com> <20200525080541.GF104922@dcbz.redhat.com> <877dwybxvi.fsf@x220.int.ebiederm.org> <20200527141403.GC250149@dcbz.redhat.com> <20200527152955.jbbipgb6icb4nwgv@wittgenstein> In-Reply-To: <20200527152955.jbbipgb6icb4nwgv@wittgenstein> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.118.183] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME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