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,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,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 74694C43381 for ; Tue, 2 Feb 2021 14:45:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3FD0B64ED7 for ; Tue, 2 Feb 2021 14:45:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234746AbhBBOp0 (ORCPT ); Tue, 2 Feb 2021 09:45:26 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:42564 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234707AbhBBOnW (ORCPT ); Tue, 2 Feb 2021 09:43:22 -0500 Received: from liv.coker.com.au (unknown [103.75.204.227]) (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) (Authenticated sender: russell@coker.com.au) by smtp.sws.net.au (Postfix) with ESMTPSA id 2D684EB83; Wed, 3 Feb 2021 01:42:31 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1612276953; bh=TpxOkURIaw5MAwxBsJzv5KiJIVLL3AJV5AtJPdsmpsc=; l=1095; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WNZTi9/6+hkzTQ8vfDVrxEfpVU6LDQiwU1uIFVw25f4eqKoUarxBonOQDo6QdEuXt J4Qx7sroYKhkrr2PZgM8JplzSblLskv+LBGbPkepacUe0DsOcXD/dRuJ7asm5q2JGN OpWNjrmdO+5648BWaPER/rClSHWP+P16vLjbVSNA= From: Russell Coker To: Chris PeBenito Cc: selinux-refpolicy@vger.kernel.org Subject: Re: [PATCH] new version of filetrans patch Date: Wed, 03 Feb 2021 01:42:27 +1100 Message-ID: <2243812.pyNZXzfhlh@liv> In-Reply-To: <983ff6fa-2bbc-22f1-a72c-a4eb38127f09@ieee.org> References: <983ff6fa-2bbc-22f1-a72c-a4eb38127f09@ieee.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Wednesday, 3 February 2021 12:49:07 AM AEDT Chris PeBenito wrote: > > Name changes suggested by Dominick and some more additions. > > > > Signed-off-by: Russell Coker > > Merged, though I renamed some interfaces and dropped a block that didn't > apply since it's so close to the merge window closing. +interface(`systemd_run_passwd_agent',` + gen_require(` + type systemd_passwd_agent_t, systemd_passwd_agent_exec_t; + ') + + domain_auto_transition_pattern($1, systemd_passwd_agent_exec_t, systemd_passwd_agent_t) + allow systemd_passwd_agent_t $1:fd use; + role $2 types systemd_passwd_agent_t; +') Why did you change the above to the below? It needs an auto trans. interface(`systemd_run_passwd_agent',` gen_require(` type systemd_passwd_agent_t, systemd_passwd_agent_exec_t; ') domtrans_pattern($1, systemd_passwd_agent_exec_t, systemd_passwd_agent_t) allow systemd_passwd_agent_t $1:fd use; role $2 types systemd_passwd_agent_t; ') -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/