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 4B65B138334 for ; Sun, 11 Nov 2018 23:29:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F32E2E0D39; Sun, 11 Nov 2018 23:29:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 C84F2E0D39 for ; Sun, 11 Nov 2018 23:29:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 9FAEB335D02 for ; Sun, 11 Nov 2018 23:29:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2405B473 for ; Sun, 11 Nov 2018 23:29:33 +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: <1541978251.876526eaec1af77abca0b1033ef863882dd92b48.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/clamav.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 876526eaec1af77abca0b1033ef863882dd92b48 X-VCS-Branch: master Date: Sun, 11 Nov 2018 23:29:33 +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-Archives-Salt: 785c2baa-2939-4a8e-a9f1-393062e42c03 X-Archives-Hash: cab304ff0642f1861ab4a75cf5c9947d commit: 876526eaec1af77abca0b1033ef863882dd92b48 Author: David Sugar tresys com> AuthorDate: Fri Nov 2 00:38:01 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Nov 11 23:17:31 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=876526ea Allow clamd_t to read /proc/sys/crypt/fips_enabled To fix the following denials: type=AVC msg=audit(1540821927.216:215): avc: denied { search } for pid=1726 comm="clamd" name="crypto" dev="proc" ino=68 scontext=system_u:system_r:clamd_t:s0 tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=dir type=AVC msg=audit(1540821927.216:215): avc: denied { read } for pid=1726 comm="clamd" name="fips_enabled" dev="proc" ino=69 scontext=system_u:system_r:clamd_t:s0 tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file type=AVC msg=audit(1540821927.216:215): avc: denied { open } for pid=1726 comm="clamd" path="/proc/sys/crypto/fips_enabled" dev="proc" ino=69 scontext=system_u:system_r:clamd_t:s0 tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file type=AVC msg=audit(1540821927.216:216): avc: denied { getattr } for pid=1726 comm="clamd" path="/proc/sys/crypto/fips_enabled" dev="proc" ino=69 scontext=system_u:system_r:clamd_t:s0 tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file Signed-off-by: Dave Sugar tresys.com> Signed-off-by: Jason Zaman perfinion.com> policy/modules/services/clamav.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/services/clamav.te b/policy/modules/services/clamav.te index b8c53a58..b55bac56 100644 --- a/policy/modules/services/clamav.te +++ b/policy/modules/services/clamav.te @@ -104,6 +104,7 @@ manage_sock_files_pattern(clamd_t, clamd_var_run_t, clamd_var_run_t) files_pid_filetrans(clamd_t, clamd_var_run_t, { dir file sock_file }) kernel_dontaudit_list_proc(clamd_t) +kernel_read_crypto_sysctls(clamd_t) kernel_read_sysctl(clamd_t) kernel_read_kernel_sysctls(clamd_t) kernel_read_system_state(clamd_t)