Received: by 10.192.165.156 with SMTP id m28csp884978imm; Fri, 13 Apr 2018 09:26:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/w3TIEc/sdPFmzlnqHDby2byU4IvJ4vrKndfoitqZNotodfoAzoMNixI6+UnSAewQSU6MK X-Received: by 10.98.7.83 with SMTP id b80mr12168756pfd.133.1523636807277; Fri, 13 Apr 2018 09:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523636807; cv=none; d=google.com; s=arc-20160816; b=UrgYhiOtdOLaCaC7+AqHHJ0ETUaAWQHOcWeZJu0QQH3E2U6458HHx0kY4jsbtVxBSB wB15/2edcqONNX+Be6kkrBIZBqtOH0pjFlnC7chpaOuD5OVGjveGX45Riau77rBCTQYK /UqnRr0HqhemueLbRsEN175ksscbSIyi+wJAP0D85umZVMp/OeTZeNb1TH8CDp8W6zHp /SpX5vtol7Z1ytPAasIn0o07yCbX3YpDkXOS5IcTUBSo1i0DPQo5iotuV522Atb+tMf5 1gM8XElYBSwSs2WOyROX3zKZ+c5NOsbnj3rT5OMEmRySBq2wppf6JYKnHB8kO30RcBVY Hpow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject :arc-authentication-results; bh=OTLj3CCsfRuL+NB9ZfpPjhsNrs0EBqcD4BeDS48uG94=; b=F65uU6Q2VrSO0B+jqYvcEaQ68I5bmXq0OifJVhKV57fjLb+XI53Qngn8ICzA1VS65M uDPi9j6qHhOC7wB/o83dk8VJSOIazQ4UwwepwPrsSxFBV6jG7ASV1TVE2d0nK0/S0nWN GEXghkkejQjBVetV0roOzRZ43qU5uD1vmi8M5+1QJUuB4KnQCoe1+zQG1gs6r2s8NpAR xK+BfGZJ46Li77x5v1zUAOi8Jou1e32h+g8Xt8uavQl/9wadFstngaC8jpy0riuAZrBy ol067y8kekkAemdNk/a6LqvtYO/EgATkTlxFD/F4DdxQg3zGZvLAvonzWb71SIPRPEYd VOfg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t71si4203682pgb.70.2018.04.13.09.26.33; Fri, 13 Apr 2018 09:26:47 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752245AbeDMQZP (ORCPT + 99 others); Fri, 13 Apr 2018 12:25:15 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41252 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750837AbeDMQZN (ORCPT ); Fri, 13 Apr 2018 12:25:13 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3DGOVdE086760 for ; Fri, 13 Apr 2018 12:25:12 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hawan0gmy-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Fri, 13 Apr 2018 12:25:12 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 13 Apr 2018 17:25:09 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 13 Apr 2018 17:25:06 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3DGP58c57868426; Fri, 13 Apr 2018 16:25:05 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 685AD11C050; Fri, 13 Apr 2018 17:17:07 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 87F8411C04C; Fri, 13 Apr 2018 17:17:05 +0100 (BST) Received: from localhost.localdomain (unknown [9.80.105.39]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 13 Apr 2018 17:17:05 +0100 (BST) Subject: Re: [RFC PATCH v3 1/3] ima: extend clone() with IMA namespace support From: Mimi Zohar To: "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 , John Johansen Date: Fri, 13 Apr 2018 12:25:02 -0400 In-Reply-To: <87sh8lcecn.fsf@xmission.com> 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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18041316-0008-0000-0000-000004EA490B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041316-0009-0000-0000-00001E7E57BF Message-Id: <1523636702.3272.63.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-13_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804130150 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [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. 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. Mimi