From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2A17B1382C5 for ; Mon, 1 Feb 2021 02:10:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE3CFE09B4; Mon, 1 Feb 2021 02:10:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A9E9DE09B4 for ; Mon, 1 Feb 2021 02:10:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D4E2B341031 for ; Mon, 1 Feb 2021 02:10:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0EAB34B7 for ; Mon, 1 Feb 2021 02:10:09 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1612142502.f5c9fba7feac9bd937bf9de3783b2717fd145f50.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/samba.if X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: f5c9fba7feac9bd937bf9de3783b2717fd145f50 X-VCS-Branch: master Date: Mon, 1 Feb 2021 02:10:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a5ad028d-66a2-4136-9692-f83e5b92d166 X-Archives-Hash: a6912146ab2c16139d9466718cb7ad76 commit: f5c9fba7feac9bd937bf9de3783b2717fd145f50 Author: Chris PeBenito ieee org> AuthorDate: Thu Jan 28 16:39:34 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Feb 1 01:21:42 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f5c9fba7 samba: Add missing userspace class requirements in unit interfaces. Signed-off-by: Chris PeBenito ieee.org> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/samba.if | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/services/samba.if b/policy/modules/services/samba.if index 6af30d0c..92eab06d 100644 --- a/policy/modules/services/samba.if +++ b/policy/modules/services/samba.if @@ -341,6 +341,7 @@ interface(`samba_read_share_files',` interface(`samba_start',` gen_require(` type samba_unit_t; + class service start; ') allow $1 samba_unit_t:file getattr; @@ -360,6 +361,7 @@ interface(`samba_start',` interface(`samba_stop',` gen_require(` type samba_unit_t; + class service stop; ') allow $1 samba_unit_t:file getattr; @@ -379,6 +381,7 @@ interface(`samba_stop',` interface(`samba_status',` gen_require(` type samba_unit_t; + class service status; ') allow $1 samba_unit_t:file getattr; @@ -398,6 +401,7 @@ interface(`samba_status',` interface(`samba_reload',` gen_require(` type samba_unit_t; + class service reload; ') allow $1 samba_unit_t:file getattr;