Received: by 10.192.165.156 with SMTP id m28csp1648540imm; Wed, 18 Apr 2018 13:16:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+V9dU2gTgXhWZJW00ksY4G/PXXcXYDZJ8Iq8GaM7LqagyLBXHvCpe4Ea/ucC0UAGhUkvi6 X-Received: by 10.101.64.70 with SMTP id h6mr2823890pgp.135.1524082588604; Wed, 18 Apr 2018 13:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524082588; cv=none; d=google.com; s=arc-20160816; b=vnmHZCRtfHMYizEDc98XiYbwP0/GsCWrPmKCTQWIeuzCbRY3XaZUwznWSo8B3iBEAo IYCw6SoXuDyzdxn404ItZfTjUmKXUr/n5GDtUGSBQKwBBzYoIwD3/sOrQJ8xEnpKb2ft f4ouw5t33GlR6UgIZGOS2VVhHRDsdPxRByC8mAWhsXl22lqMxv4vxs49PsQMtlaVte/u +KuXP2PT4PPfUWOEdiASyuFXk5YKDRCKw/HfGdQEB2wxhwY42vFG+7JcHa3A0dXiKe2S Uxm8Ldyo/bagDGLAf+JCZgW/pdukT8FDwrwiN9t/VUEeNiJ6llQ6Cq8+Xq8FdU1pxWWs 6mIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:user-agent:message-id:in-reply-to:date:references:cc :to:from:arc-authentication-results; bh=es0EtU7Nyh0vU+XLH20cgRVQsbYijVnBTAsid1IfJNQ=; b=o0G/HyMg0tLZCAoQfHhgtdLV/8LSKjzlFhW8wu5tjf+WZGZzBbYhftmEOAnmI0cSYt zFwp7mSahT/W5P/rPZGrIXwtFXMn8QI/Xhk0ciJSgjtTrjOPAyuk6ArikPTVGwcQq3uM dj3oInE41Fe5ofghhx7j4mFJ32SjJe7z+hPK7NTu8QgJO4OQGIjGkHm9gHxKM8hND32A uHcH/E5cBi9eRcRInKhY5ZLeIEd4vWc1/ndn4ySsSPQZ325e7tCN2I+LU51CKnTZUVdq IeWnDIXIHVVsLW58brVtx7O1arwSjuMqD8S6HqWm8Iz2UTu59B9fZLx6OGja9YxbwovS nLZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12-v6si1788176plt.175.2018.04.18.13.16.12; Wed, 18 Apr 2018 13:16:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752166AbeDRUOY convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Apr 2018 16:14:24 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:45369 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872AbeDRUOW (ORCPT ); Wed, 18 Apr 2018 16:14:22 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f8tT4-0000Pv-8U; Wed, 18 Apr 2018 14:14:14 -0600 Received: from [97.119.174.25] (helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1f8tT3-0006Cs-1Y; Wed, 18 Apr 2018 14:14:13 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Mimi Zohar Cc: John Johansen , Stefan Berger , linux-integrity@vger.kernel.org, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, tycho@docker.com, serge@hallyn.com, sunyuqiong1988@gmail.com, david.safford@ge.com, mkayaalp@cs.binghamton.edu, James.Bottomley@HansenPartnership.com, Yuqiong Sun , Mehmet Kayaalp References: <1522159038-14175-1-git-send-email-stefanb@linux.vnet.ibm.com> <1522159038-14175-2-git-send-email-stefanb@linux.vnet.ibm.com> <87sh8lcecn.fsf@xmission.com> <1523636702.3272.63.camel@linux.vnet.ibm.com> <1524081472.3272.319.camel@linux.vnet.ibm.com> Date: Wed, 18 Apr 2018 15:12:45 -0500 In-Reply-To: <1524081472.3272.319.camel@linux.vnet.ibm.com> (Mimi Zohar's message of "Wed, 18 Apr 2018 15:57:52 -0400") Message-ID: <87wox4s282.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-XM-SPF: eid=1f8tT3-0006Cs-1Y;;;mid=<87wox4s282.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.174.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+PTpRxHSEVb9a727dLqhn38S4aP9zK5tc= X-SA-Exim-Connect-IP: 97.119.174.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa03.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01,T_TooManySym_02, XMSubLong autolearn=disabled version=3.4.0 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 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.4323] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa03 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject X-Spam-DCC: XMission; sa03 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Mimi Zohar X-Spam-Relay-Country: X-Spam-Timing: total 577 ms - load_scoreonly_sql: 0.07 (0.0%), signal_user_changed: 4.1 (0.7%), b_tie_ro: 2.9 (0.5%), parse: 1.38 (0.2%), extract_message_metadata: 6 (1.0%), get_uri_detail_list: 2.6 (0.4%), tests_pri_-1000: 7 (1.2%), tests_pri_-950: 2.3 (0.4%), tests_pri_-900: 2.1 (0.4%), tests_pri_-400: 35 (6.1%), check_bayes: 33 (5.7%), b_tokenize: 12 (2.2%), b_tok_get_all: 8 (1.5%), b_comp_prob: 4.7 (0.8%), b_tok_touch_all: 3.2 (0.6%), b_finish: 0.89 (0.2%), tests_pri_0: 490 (85.0%), check_dkim_signature: 0.92 (0.2%), check_dkim_adsp: 4.8 (0.8%), tests_pri_500: 8 (1.4%), rewrite_mail: 0.00 (0.0%) Subject: Re: [RFC PATCH v3 1/3] ima: extend clone() with IMA namespace support 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 in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mimi Zohar writes: > On Wed, 2018-04-18 at 09:09 -0700, John Johansen wrote: >> On 04/13/2018 09:25 AM, Mimi Zohar wrote: >> > [Cc'ing John Johansen] >> > >> > On Tue, 2018-03-27 at 18:01 -0500, Eric W. Biederman wrote: >> > [...] >> >> As such I expect the best way to create the ima namespace is by simply >> >> writing to securityfs/imafs. Possibly before the user namespace is >> >> even unshared. That would allow IMA to keep track of things from >> >> before a container is created. >> > >> >> I do think this is generally the right approach for LSMs when looking >> forward to LSM stacking and more LSMs. >> >> >> > My initial thought was to stage IMA namespacing with just IMA-audit >> > first, followed by either IMA-measurement or IMA-appraisal.  This >> > would allow us to get the basic IMA namespacing framework working and >> > defer dealing with the securityfs related namespacing of the IMA >> > policy and measurement list issues to later. >> > >> > By tying IMA namespacing to a securityfs ima/unshare file, we would >> > need to address the securityfs issues first. >> > >> >> well it depends on what you want to do. It would be possible to have >> a simple file (not a jump link) within securityfs that IMA could use >> without having to deal with all the securityfs issues first. However it >> does require that securityfs (not necessarily imafs) be visible within >> the mount namespace of the task doing the setup. > > Eric, would you be OK with that? Roughly. My understanding is that you have to have a write to some filesystem to set the ima policy. I was expecting having to write an "create ima namespace" value to the filesystem would not be any special effort. Now it sounds like providing the "create an ima namespace" is going to be a special case, and that does not sound correct. Eric