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 9E384138334 for ; Sun, 9 Dec 2018 11:49:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9EEF2E094A; Sun, 9 Dec 2018 11:49:06 +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 6E214E0948 for ; Sun, 9 Dec 2018 11:49:06 +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 EF821335CF9 for ; Sun, 9 Dec 2018 11:49:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 681414E9 for ; Sun, 9 Dec 2018 11:48:58 +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: <1542538607.ea4f4fa195aa079306669e20f23a271825a0e7a7.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/cron.if X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: ea4f4fa195aa079306669e20f23a271825a0e7a7 X-VCS-Branch: master Date: Sun, 9 Dec 2018 11:48:58 +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: a202ca88-4981-478a-9623-7f287a2fed32 X-Archives-Hash: 912dbeb34fa39f6a6ddb24ea249c60eb commit: ea4f4fa195aa079306669e20f23a271825a0e7a7 Author: David Sugar tresys com> AuthorDate: Fri Nov 16 17:43:25 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Nov 18 10:56:47 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ea4f4fa1 Interface to read cron_system_spool_t Useful for the case that manage isn't requied. Signed-off-by: Dave Sugar tresys.com> Signed-off-by: Jason Zaman perfinion.com> policy/modules/services/cron.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/services/cron.if b/policy/modules/services/cron.if index 7bb6065b..87f8322b 100644 --- a/policy/modules/services/cron.if +++ b/policy/modules/services/cron.if @@ -703,6 +703,26 @@ interface(`cron_manage_system_spool',` manage_files_pattern($1, system_cron_spool_t, system_cron_spool_t) ') +######################################## +## +## Read the system spool. +## +## +## +## Domain allowed access. +## +## +# +interface(`cron_read_system_spool',` + gen_require(` + type system_cron_spool_t; + ') + + cron_search_spool($1) + list_dirs_pattern($1, system_cron_spool_t, system_cron_spool_t) + read_files_pattern($1, system_cron_spool_t, system_cron_spool_t) +') + ######################################## ## ## Read and write crond temporary files.