Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp251717imp; Tue, 19 Feb 2019 22:58:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IaqjPhJvG6mibv1wK/Bju8nNR0lmXNNy3NTEMkv75GWZj44R0F6sROmhS1S4bhBimI68ujg X-Received: by 2002:a63:ce0e:: with SMTP id y14mr27973585pgf.145.1550645904582; Tue, 19 Feb 2019 22:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550645904; cv=none; d=google.com; s=arc-20160816; b=QXS3vg8bFpDrvHV861XnTNb0aHx63lEPQESlkIntLmPVTcZbYKtR1zLWlmjO+TUFkJ 8d9Tgr4BA79kryiOtSTMrLWvI1hrXrKzyhHsC21+OcpZdiHb9kqP9kYDofb1qxaqT6ZC IwkWU7naCEBbaCmO29kr6NHumgEeogevRASEBj9MQogkdmYzvxm2seQe3NXqHzwHgQ6l Nj7tj2e7FEoADL/fJQ//LCbvP4tQVGtUPqmaNj/YkeYAGkBtWr21asge5OEyiEpJ3dT7 Qixd3MWACYUUC4d1O9DuV3sOkERD4Nh4CSVQao2aEgrfbdUnEzEXYpZhcNDHJesGlzHq 2lcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ncoDYnqxH3gs9Sc4jdqZc699sEVY31p6X34ojqSqzzM=; b=PztYM1deQCS0tIEST8AwnhxaSC9VwCZYgR73kwt6FSWERp9qTbf1eC6bndkA82OUC4 UlVUPqvfDDs4IEZ/sRmfSr20+/gsCGN6CXqlq79rp59UxMWTdRfSGCLLV50IYIDfglIz bY+ij58c1ww8ml+eIbGH9WAhrxviDKOU3VzmdeCuUJGduLzBxHfdlz7+v9XvGscl9c9i GY+RJiqnHShkJ3vHywb7Aeu5DSFlOTQ4TTzh0ervI1X8hesVERNst9F+SJJ+XJ0MkZjL nBVn4HdL1+kg+qvWd3mWKtsZ+e9Kt+1R3OOcYkzr9sgd64TCi0ev6q0fporOKQ0IJssI ZYFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=OcCZh083; 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 o37si18172471pgm.85.2019.02.19.22.58.09; Tue, 19 Feb 2019 22:58:24 -0800 (PST) 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; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=OcCZh083; 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 S1727153AbfBTG5s (ORCPT + 99 others); Wed, 20 Feb 2019 01:57:48 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35517 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfBTG5s (ORCPT ); Wed, 20 Feb 2019 01:57:48 -0500 Received: by mail-lj1-f194.google.com with SMTP id j13-v6so19866077ljc.2 for ; Tue, 19 Feb 2019 22:57:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ncoDYnqxH3gs9Sc4jdqZc699sEVY31p6X34ojqSqzzM=; b=OcCZh083AzJ6sYc48woP23gRRbpaNKLC68TAdlArP77RO3+mrjVrj/iw4ZpWg3rNV3 29swcTzY/zTMAOqxs45u579zp81oWJDiOwSJh6tom9D/tAOgnuzVSLlkcuqb8zkvn041 kOisgtVcvn0D2ldK2m99xkgmKknYygp1QYdTxOKnNijCZ/APmJ7hGFeM3e3VsCDdMErt wx0sR0iBJ+9HphZXJkooMsrO2GYHiQuoD7D0L5Nb1CAmiVGw+uEgE5SHW+LeT4H60qrm snbkENIP97Ktg8O/dDr3jUbp95t4Oa9ezjlJLisfHr/j4+wT/VqcxY16IMT2kuOtYSUn LRcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ncoDYnqxH3gs9Sc4jdqZc699sEVY31p6X34ojqSqzzM=; b=Q9pv6u6kjCxvCAkFuG771drZ3/b4EapAlKqOEKMw+RHl1d2YbBmBo0tOH8Z70m08kY HAbngU2BxSIyYtWDKN2aXRfbqzXmWblS1bG3B73kMM3JXjfmKCObcCKzujEQR99u3ERG hhy8+NpuxgM1yDCFYqR4LisBVpubeeo1V+k36joBL+NhJaOzdprZ4vqzCClaK+1pAMJK EdkhYgpbGJ3Y3MUsWNwz9HqUrAvC97q4vet9gn0s/g5Db17XsZXdPBdLBR9cBLh5/ls1 M0cY37NsLBBjiTkZ3shxWilC1sBpv7ARxm4dfJwrJpnjeyxFg2k8YwOxvDwXh626G8tS Gcdw== X-Gm-Message-State: AHQUAuYfXynYOcdbGjOeohuKi+tPixsqXSkIv6kf9eHHCpOjOL0HEG43 YQFYg8BHyyNdidxgAiaDanN+AehyZA4nO/Zwm0t4 X-Received: by 2002:a2e:2419:: with SMTP id k25mr8500519ljk.38.1550645865873; Tue, 19 Feb 2019 22:57:45 -0800 (PST) MIME-Version: 1.0 References: <1550432358.2809.21.camel@HansenPartnership.com> <155024683432.21651.14153938339749694146.stgit@warthog.procyon.org.uk> <155024685321.21651.1504201877881622756.stgit@warthog.procyon.org.uk> <19562.1550617574@warthog.procyon.org.uk> <1550629220.11684.3.camel@HansenPartnership.com> <054c1e762d28306abd4db9c42fb1c5f4261332fd.camel@themaw.net> <1550634367.11684.6.camel@HansenPartnership.com> In-Reply-To: <1550634367.11684.6.camel@HansenPartnership.com> From: Paul Moore Date: Wed, 20 Feb 2019 01:57:34 -0500 Message-ID: Subject: Re: [RFC PATCH 02/27] containers: Implement containers as kernel objects To: James Bottomley Cc: Ian Kent , David Howells , keyrings@vger.kernel.org, trond.myklebust@hammerspace.com, sfrench@samba.org, linux-security-module@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, rgb@redhat.com, linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 10:46 PM James Bottomley wrote: > On Wed, 2019-02-20 at 11:04 +0800, Ian Kent wrote: > > On Tue, 2019-02-19 at 18:20 -0800, James Bottomley wrote: > > > On Tue, 2019-02-19 at 23:06 +0000, David Howells wrote: > > > > James Bottomley wrote: > > > > > > > > > I thought we got agreement years ago that containers don't > > > > > exist in Linux as a single entity: they're currently a > > > > > collection of cgroups and namespaces some of which may and some > > > > > of which may not be local to the entity the orchestration > > > > > system thinks of as a "container". > > > > > > > > I wasn't party to that agreement and don't feel particularly > > > > bound by it. > > > > > > That's not at all relevant, is it? The point is we have widespread > > > uses of namespaces and cgroups that span containers today meaning > > > that a "container id" becomes a problematic concept. What we > > > finally got to with the audit people was an unmodifiable label > > > which the orchestration system can set ... can't you just use that? > > > > Sorry James, I fail to see how assigning an id to a collection of > > objects constitutes a problem or how that could restrict the way a > > container is used. > > Rather than rehash the whole argument again, what's the reason you > can't use the audit label? It seems to do what you want in a way that > doesn't cause problems. If you can just use it there's little point > arguing over what is effectively a moot issue. Ignoring for a moment whether or not the audit container ID is applicable here, one of the things I've been focused on with the audit container ID work is trying to make it difficult for other subsystems to use it. I've taken this stance not because I don't think something like a container ID would be useful outside the audit subsystem, but rather because I'm afraid of how it might be abused by other subsystems and that abuse might threaten the existence of the audit container ID. If there is a willingness to implement a general kernel container ID that behaves similarly to how the audit container ID is envisioned, I'd much rather do that then implement something which is audit specific. -- paul moore www.paul-moore.com