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 E9BCE138334 for ; Sun, 11 Nov 2018 23:29:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 866EDE0D2B; Sun, 11 Nov 2018 23:29:37 +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 4C9ABE0D21 for ; Sun, 11 Nov 2018 23:29:37 +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 0AA9A335CF8 for ; Sun, 11 Nov 2018 23:29:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A68E146D for ; Sun, 11 Nov 2018 23:29:32 +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.97d472c60912a6991b880577f167b2afcc20d9f5.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.if X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 97d472c60912a6991b880577f167b2afcc20d9f5 X-VCS-Branch: master Date: Sun, 11 Nov 2018 23:29:32 +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: 0c2f3d34-e752-4f52-849f-a564b854cf97 X-Archives-Hash: e729edea90e59047a7862bff47f94828 commit: 97d472c60912a6991b880577f167b2afcc20d9f5 Author: David Sugar tresys com> AuthorDate: Sat Oct 27 16:14:42 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=97d472c6 Interface to allow reading of virus signature files. Signed-off-by: Dave Sugar tresys.com> Signed-off-by: Jason Zaman perfinion.com> policy/modules/services/clamav.if | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/policy/modules/services/clamav.if b/policy/modules/services/clamav.if index 7ad8e800..80ac5c1e 100644 --- a/policy/modules/services/clamav.if +++ b/policy/modules/services/clamav.if @@ -177,6 +177,34 @@ interface(`clamav_read_state_clamd',` read_lnk_files_pattern($1, clamd_t, clamd_t) ') +####################################### +## +## Read clam virus signature files +## +## +##

+## Useful for when using things like 'sigtool' +## which provides useful information about +## ClamAV signature files. +##

+##
+## +## +## Domain allowed access. +## +## +# +interface(`clamav_read_signatures',` + gen_require(` + type clamd_var_lib_t; + ') + + clamav_search_lib($1) + allow $1 clamd_var_lib_t:dir list_dir_perms; + read_files_pattern($1, clamd_var_lib_t, clamd_var_lib_t) + read_lnk_files_pattern($1, clamd_var_lib_t, clamd_var_lib_t) +') + ######################################## ## ## All of the rules required to