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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 6EAC3C4338F for ; Wed, 11 Aug 2021 22:15:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46D0160462 for ; Wed, 11 Aug 2021 22:15:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232335AbhHKWPj (ORCPT ); Wed, 11 Aug 2021 18:15:39 -0400 Received: from yunyun.fuwafuwatime.moe ([107.191.99.165]:60556 "EHLO yunyun.fuwafuwatime.moe" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232226AbhHKWPj (ORCPT ); Wed, 11 Aug 2021 18:15:39 -0400 X-Greylist: delayed 462 seconds by postgrey-1.27 at vger.kernel.org; Wed, 11 Aug 2021 18:15:39 EDT 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 4B709C1778 for ; Wed, 11 Aug 2021 18:07:33 -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 A180B43BDF for ; Wed, 11 Aug 2021 18:07:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=concord.sh; s=dkim; t=1628719651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=opZ5L8p0n4kO6lkWQ7DPF9AYdc+mniwmw6A3WoNnsUo=; b=v6jIKv2inmwRbKDqpK2fg3RU3Vty7myEt4f5QD0DwZVsPYnLiBgwYwrxVmdRBOUlgKmz+W bcWc5TbNYvVLNby5EPqTHDjU+QpPEsTuvu5BEhX2Gyo6YLp4iI55jw0s2mpKBnkM4nJeuM ioVBCgZ+ChFru9CNefPkqEpoXzM7q5L0VZD+2QLsdlzpltFUN9qMS95IRsieyHBeirdrJv seysXGaPu1h4TSxgW0R5VgnVGcjQPN3e8Y+zPgRj2GtKKnzW+H8q7/CxFsYnZ1N48FPoGV pYRqzFiOqrWTnSwEVv8wTL5Mc9Koysnk5W+EjH5brGtD8tQGBbOE5FuCk0y4Cg== Date: Wed, 11 Aug 2021 18:07:28 -0400 From: Kenton Groombridge To: selinux-refpolicy@vger.kernel.org Subject: [RFC] containers module in refpolicy Message-ID: <20210811220728.erzu5drv6zlh2tpg@bubbles> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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?