Received: by 10.192.165.156 with SMTP id m28csp1409085imm; Wed, 18 Apr 2018 09:11:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vV2WZV5wByfDj4a73St0tHd2W4qNGj36zLVcGh7OvccnOPTL2eXiSkVRhfFqPKL0XAFe4 X-Received: by 2002:a17:902:69c5:: with SMTP id m5-v6mr2600451pln.358.1524067862283; Wed, 18 Apr 2018 09:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524067862; cv=none; d=google.com; s=arc-20160816; b=x2kJelzqY0VtHbOHYl26i+PjE/cmHNo4+0gzV5ZVu8k9Q8cJci1UpOfabHQiIngJ5A m/jidZ7EnQXBTEMxshRIMx91kCMJPXthpY1aNxsPvmL2MctpG5ZYd4zTMmx4E8k0SYpu qxkuJfmajIVSVJjacyzIpVFWdtl9E2bKqF8HAqkOrl6jpH0osNSY0L+gHjZILsNxuQJz 0vi7CVBHvvccKRNuBfrB0NA+QPqUifWl2ahyMfHXd8+TbQbrs/3xmgKYIXqVGYA/z56S 20fssMjehr7Jg3DdwvZBqW9Z1hJuvPX/uWJOIKovwzWH8krMB5JKHPfeXQdFmK25RA0m Fsfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=hcy5YH4hl2AL9/KMjAaFkxiJme+rSkdpgl/u8mhUqDQ=; b=ZMGWgxvBap2zQEohUVLcesBLvI5dpXjqhiUpHiyR0nEbX9m/0o0e6kWuxpwBH93zEk 5UEzTrCZnFzNjwson12zwYbsAFFtIOPnMO15oOra/nSpj8zVFVvvZgmFBEojrxayjQln cw3llz1OvQKHryiOCUmnBlKoI9o+jZE6fUe8zsE4Kl6h4/wBMQ2oKPXWCCCVEmd6CkqF 5kWjrNV9Jkm7uccW+XrfZr2HatwPJF0KrulwWElkvPo4hRPtpqbOBWx4xf+9NQR6RiVf 6waxS69LTi9ptQ1YP89oUGkBHP5p1aNnV/58hRHsNe7j6lCkBauwwHVaJjEUHinlYg8j TnLQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n13si1437993pfh.31.2018.04.18.09.10.48; Wed, 18 Apr 2018 09:11:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752903AbeDRQJk (ORCPT + 99 others); Wed, 18 Apr 2018 12:09:40 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35665 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752381AbeDRQJj (ORCPT ); Wed, 18 Apr 2018 12:09:39 -0400 Received: from static-50-53-54-67.bvtn.or.frontiernet.net ([50.53.54.67] helo=[192.168.192.153]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1f8peB-0006XW-Qc; Wed, 18 Apr 2018 16:09:27 +0000 Subject: Re: [RFC PATCH v3 1/3] ima: extend clone() with IMA namespace support To: Mimi Zohar , "Eric W. Biederman" , Stefan Berger Cc: 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> From: John Johansen Organization: Canonical Message-ID: Date: Wed, 18 Apr 2018 09:09:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523636702.3272.63.camel@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.