Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp78071pxp; Tue, 8 Mar 2022 20:57:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxM9MMXSYH2uvmKRYTH02Cxis6V/4rBbAo+um9uSeMgIqqJElrxrpsJ26T14+s+Y4gGFmZ/ X-Received: by 2002:a17:906:2ec9:b0:6db:1bfc:9c27 with SMTP id s9-20020a1709062ec900b006db1bfc9c27mr12431612eji.505.1646801867514; Tue, 08 Mar 2022 20:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646801867; cv=none; d=google.com; s=arc-20160816; b=g15pj7kkB1ttA/+3+Hz41lx7PJBFUJTaStQl0bxb2ElxPXuIZeDhuRN+v+tvsl7ZZ8 GYyjX8UeE40+4e6segtgxlO4Zpf6alUF0SjSgo7OWL9EtUco5MJtBOFUzTsZ5K2DvHT7 QHi3mtOgd4cWM2CqrW2PLcXn2rkcP1jD5UcieuGoMqljvJ9LOGuKvQcfDbG+0xcR8mfE ixNmvBrWwjnCHbiemEEspO8BPhOlfFR6iNaKorTtKgq7NPbkOE9GKNhS/DJ0pOreWjVo 02KKQznaEM6vjE0kyJqKH3fC7fhGyjwK8QTKbkTVfZ56tuRIz9GIEgLfSrk+DasbqxPu 0Arg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:reply-to:to:from :dkim-signature; bh=loGG2eEySs9nJRR/Zs+iTmSB3kwX6DXI8b4M+NeCQkI=; b=cVvxZ2VxN1KTKgYUBzgGoC03KNR6wtDRvPOUO+E1hp9PaWNbkYhGbgtMKw289ODL32 XNw+hkKj7ilYC5v9iJm971JkiP5B3qPTHasxJRP4YFFtCzpnsLrSOwbkFCahcGTzsCYe ko2BQH3GaLX7HvVXL0LlznkNGoEIf/m+FIHdUiCo7pj0UCq/PTJdFKChfbHdBNE8eQWF SfieqMQMzG1Nc+xZeLxNCjlcrI9Io8xUwawP+kGowbRuKdcYEIOVbyQseAIeuEWkK+Y7 +ws+m+2qILP767SjSOqHgxajUp8k1iW2mRjL1pTvRo9qz3QL7dnrj+ysAtI1TqXauT+N 5obQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=JUKeLWwH; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a056402524f00b004164ad7c899si534001edd.518.2022.03.08.20.57.38; Tue, 08 Mar 2022 20:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=JUKeLWwH; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229461AbiCIEzI (ORCPT + 23 others); Tue, 8 Mar 2022 23:55:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiCIEzH (ORCPT ); Tue, 8 Mar 2022 23:55:07 -0500 Received: from smtp.sws.net.au (smtp.sws.net.au [144.76.241.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F1C577AB7 for ; Tue, 8 Mar 2022 20:54:07 -0800 (PST) Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id C4F38FA80; Wed, 9 Mar 2022 15:54:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1646801643; bh=loGG2eEySs9nJRR/Zs+iTmSB3kwX6DXI8b4M+NeCQkI=; l=1531; h=From:To:Reply-To:Subject:Date:In-Reply-To:References:From; b=JUKeLWwHcN5DFyiim/DntO6Qkmb/NaWwWBx+uOzPbtTQAUOBteQMIbuBx8zwd/ita sWYe/YhFXu216a/PikgTfgTs+oJcJapkMPmCx5KtixptPw33sW30eIL+zYy/htz1KP U3awTRtgADN+qDIt6ql/ys74ok9XBrDFkr/oTe7M= Received: by xev.coker.com.au (Postfix, from userid 1001) id 07B1A176355F; Wed, 9 Mar 2022 15:53:58 +1100 (AEDT) From: Russell Coker To: selinux-refpolicy@vger.kernel.org, Chris PeBenito Reply-To: russell@coker.com.au Subject: Re: [PATCH] mailman3 V2.1 Date: Wed, 09 Mar 2022 15:53:57 +1100 Message-ID: <1846899.oGztph3vmi@xev> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Tuesday, 1 March 2022 08:01:02 AEDT Chris PeBenito wrote: > > +# need SELinuxContext=system_u:system_r:mailman_cgi_t:s0 in the systemd > > +# service file for the correct context on running /usr/bin/uwsgi for > > +# mailman3-web > > +corecmd_bin_entry_type(mailman_cgi_t) > > Why can't the label be changed for uwsgi? Because uwsgi is a service program that may be used by many daemons. > > allow mailman_mail_t self:capability { dac_override kill setgid setuid > > sys_tty_config };> > > -allow mailman_mail_t self:process { signal signull setsched }; > > +allow mailman_mail_t self:process { execmem signal signull setsched }; > > Any idea why the execmem is hit? https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913544 Mailman is mostly Python and function pointers in Python needs execmem, this is used by the openssl Python library among other things. > > Index: refpolicy-2.20220219/policy/modules/system/systemd.te > > =================================================================== > > --- refpolicy-2.20220219.orig/policy/modules/system/systemd.te > > +++ refpolicy-2.20220219/policy/modules/system/systemd.te > > @@ -1796,6 +1796,10 @@ optional_policy(` > > > > ') > > > > optional_policy(` > > > > + mailman_manage_lockdir(systemd_tmpfiles_t) > > There should be a systemd_tmpfilesd_managed(mailman_lock_t) in mailman.te > instead. OK, I'll make a new version with that change. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/