From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-862808-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D151E59174 for <garchives@archives.gentoo.org>; Fri, 12 Feb 2016 03:51:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C21A21C031; Fri, 12 Feb 2016 03:51:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 83F4B21C048 for <gentoo-commits@lists.gentoo.org>; Fri, 12 Feb 2016 03:51:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8D8E0340CCA for <gentoo-commits@lists.gentoo.org>; Fri, 12 Feb 2016 03:51:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 201D48EB for <gentoo-commits@lists.gentoo.org>; Fri, 12 Feb 2016 03:51:43 +0000 (UTC) From: "Jason Zaman" <perfinion@gentoo.org> 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" <perfinion@gentoo.org> Message-ID: <1455245692.7cb334bf96d8063b118479980e52da97cc24a9bd.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/cron.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 7cb334bf96d8063b118479980e52da97cc24a9bd X-VCS-Branch: master Date: Fri, 12 Feb 2016 03:51:43 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d70e1faf-a8a4-4db1-aae7-bbee7fd5238b X-Archives-Hash: d54dd14b877cc203a56c1d570b4733b9 commit: 7cb334bf96d8063b118479980e52da97cc24a9bd Author: Jason Zaman <jason <AT> perfinion <DOT> com> AuthorDate: Mon Feb 1 09:17:29 2016 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Fri Feb 12 02:54:52 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=7cb334bf cron: Allow locks to be lnk_files The run-crons script now uses symlinks to pids as the locks instead of just a plain file. avc: denied { create } for pid=5844 comm="ln" name="cron.hourly" scontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_lock_t:s0 tclass=lnk_file permissive=0 type=PATH msg=audit(1454175001.341:80669): item=2 name="/var/lock/cron.hourly" nametype=CREATE policy/modules/contrib/cron.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/cron.te b/policy/modules/contrib/cron.te index 523b8cb..9b86f67 100644 --- a/policy/modules/contrib/cron.te +++ b/policy/modules/contrib/cron.te @@ -440,7 +440,8 @@ files_pid_filetrans(system_cronjob_t, cron_var_run_t, file) manage_files_pattern(system_cronjob_t, system_cron_spool_t, system_cron_spool_t) allow system_cronjob_t system_cronjob_lock_t:file manage_file_perms; -files_lock_filetrans(system_cronjob_t, system_cronjob_lock_t, file) +allow system_cronjob_t system_cronjob_lock_t:lnk_file manage_lnk_file_perms; +files_lock_filetrans(system_cronjob_t, system_cronjob_lock_t, { file lnk_file }) manage_files_pattern(system_cronjob_t, crond_tmp_t, system_cronjob_tmp_t) manage_lnk_files_pattern(system_cronjob_t, crond_tmp_t, system_cronjob_tmp_t)