Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S376805AbdD2S3T (ORCPT ); Sat, 29 Apr 2017 14:29:19 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:43075 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S376744AbdD2S3M (ORCPT ); Sat, 29 Apr 2017 14:29:12 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: "Serge E. Hallyn" Cc: Seth Forshee , lkml , linux-api@vger.kernel.org, linux-security-module@vger.kernel.org, Kees Cook , Andreas Gruenbacher , Andy Lutomirski , "Andrew G. Morgan" References: <20170429041534.GA25594@mail.hallyn.com> Date: Sat, 29 Apr 2017 13:22:52 -0500 In-Reply-To: <20170429041534.GA25594@mail.hallyn.com> (Serge E. Hallyn's message of "Fri, 28 Apr 2017 23:15:34 -0500") Message-ID: <87a86zul8j.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1d4X7A-0001Hr-Cb;;;mid=<87a86zul8j.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=67.3.233.227;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19PL2UtJ7asmzeWn3cYmJ3M4eTbExd1O+s= X-SA-Exim-Connect-IP: 67.3.233.227 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4951] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;"Serge E. Hallyn" X-Spam-Relay-Country: X-Spam-Timing: total 5419 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 2.6 (0.0%), b_tie_ro: 1.82 (0.0%), parse: 0.78 (0.0%), extract_message_metadata: 14 (0.3%), get_uri_detail_list: 1.08 (0.0%), tests_pri_-1000: 6 (0.1%), tests_pri_-950: 1.15 (0.0%), tests_pri_-900: 1.03 (0.0%), tests_pri_-400: 20 (0.4%), check_bayes: 19 (0.4%), b_tokenize: 7 (0.1%), b_tok_get_all: 5 (0.1%), b_comp_prob: 1.99 (0.0%), b_tok_touch_all: 2.7 (0.1%), b_finish: 0.61 (0.0%), tests_pri_0: 467 (8.6%), check_dkim_signature: 0.82 (0.0%), check_dkim_adsp: 4.0 (0.1%), tests_pri_500: 4904 (90.5%), poll_dns_idle: 4896 (90.4%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v2] Introduce v3 namespaced file capabilities X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1347 Lines: 36 "Serge E. Hallyn" writes: [snip] > A patch to linux-test-project adding a new set of tests for this > functionality is in the nsfscaps branch at github.com/hallyn/ltp > > Changelog: > Nov 02 2016: fix invalid check at refuse_fcap_overwrite() > Nov 07 2016: convert rootid from and to fs user_ns > (From ebiederm: mar 28 2017) > commoncap.c: fix typos - s/v4/v3 > get_vfs_caps_from_disk: clarify the fs_ns root access check > nsfscaps: change the code split for cap_inode_setxattr() > Apr 09 2017: > don't return v3 cap for caps owned by current root. > return a v2 cap for a true v2 cap in non-init ns > Apr 18 2017: > . Change the flow of fscap writing to support s_user_ns writing. > . Remove refuse_fcap_overwrite(). The value of the previous > xattr doesn't matter. > Apr 24 2017: > . incorporate Eric's incremental diff > . move cap_convert_nscap to setxattr and simplify its usage > --- > fs/xattr.c | 6 + > include/linux/capability.h | 3 +- > include/linux/security.h | 2 + > include/uapi/linux/capability.h | 22 +++- > security/commoncap.c | 269 +++++++++++++++++++++++++++++++++++++--- > 5 files changed, 279 insertions(+), 23 deletions(-) > Grrr. No Signed-off-by: again. Eric