Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A40BC4338F for ; Thu, 12 Aug 2021 11:55:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2987060F91 for ; Thu, 12 Aug 2021 11:55:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236500AbhHLLzl (ORCPT ); Thu, 12 Aug 2021 07:55:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235145AbhHLLzl (ORCPT ); Thu, 12 Aug 2021 07:55:41 -0400 X-Greylist: delayed 49661 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 12 Aug 2021 04:55:16 PDT Received: from yunyun.fuwafuwatime.moe (yunyun.fuwafuwatime.moe [IPv6:2604:180:2:42f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32E5DC061765 for ; Thu, 12 Aug 2021 04:55:16 -0700 (PDT) Received: from megumin.fuwafuwatime.moe (c-174-50-100-124.hsd1.ga.comcast.net [174.50.100.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by yunyun.fuwafuwatime.moe (Postfix) with ESMTPSA id 3E7CCC1778; Thu, 12 Aug 2021 07:55:13 -0400 (EDT) Received: from localhost (bubbles.localdomain [192.168.1.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by megumin.fuwafuwatime.moe (Postfix) with ESMTPSA id 0130643BDF; Thu, 12 Aug 2021 07:55:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=concord.sh; s=dkim; t=1628769312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IgE0zuTDQuUFo5/Lq45DudzihQzKjvbN1R/LtcWpU2s=; b=AX03GuhujwSRpL7rNmTeE6s729b3YBZ5oEEVt83B859Eadh/W6Iwb1Qntm60pAUcchNQTj mDqOTFbXKBmUl/pooKeX2XOvItDZlAdJ8WoWGMsOfxdWaxxPcUY1D4vD6m5MBKjPXWCXMN dp3uQxoruHjtc1dA6YX5K0Yddi6XxFxU+HDklWefTz4uj+JS8vLueYiHQhrF4VIjSOdltW OFnMleYFgKRSlwqIwX0mLrGMkLOlshaA768ZFFtR8qHeERLK1TZgHBdoBsE6IAPAV0fcZM ohYrZCrkjMA1mDtAz7sh94LTwTtIG1RJDHgayGNXc2p4koBzu8uaqJ8WecSgTw== Date: Thu, 12 Aug 2021 07:55:08 -0400 From: Kenton Groombridge To: selinux-refpolicy@vger.kernel.org, Russell Coker Subject: Re: [RFC] containers module in refpolicy Message-ID: <20210812115508.2girvixrcowy4ytg@bubbles> References: <20210811220728.erzu5drv6zlh2tpg@bubbles> <1926875.vxbSVt8UrT@xev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1926875.vxbSVt8UrT@xev> Authentication-Results: ORIGINATING; auth=pass smtp.auth=me@concord.sh smtp.mailfrom=me@concord.sh Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 21/08/12 03:22PM, Russell Coker wrote: > On Thursday, 12 August 2021 8:07:28 AM AEST Kenton Groombridge wrote: > > At this time refpolicy does not have much (if any) support for various > > container runtimes such as docker or podman. An issue was raised on > > container-selinux[1] about the possibility of allowing it to be built > > against refpolicy, but the question came up of whether or not it would > > be a better idea to instead introduce such a module specifically in > > refpolicy. Upstream seems to be open to the idea of making > > container-selinux work with refpolicy, but I worry that the task of > > maintaining the module will be more work in the long run. > > > > What are your thoughts? > > We have more than a few policy modules that aren't used by the regular > contributors to refpolicy and which aren't well maintained. Adding one more > is no big deal. > > Generally having a module in upstream policy that does most of what you want > is better than nothing, you can just have a local module to do the remainder. > When the types needed are defined it removes the potential compatibility > issues of different implementations. > > Where is the [1] reference? Looks like I forgot to include it. The upstream issue is here: https://github.com/containers/container-selinux/issues/113 > > -- > My Main Blog http://etbe.coker.com.au/ > My Documents Blog http://doc.coker.com.au/ >