From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6C04D138247 for ; Mon, 25 Nov 2013 19:16:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B944CE09B2; Mon, 25 Nov 2013 19:16:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 067E8E09B2 for ; Mon, 25 Nov 2013 19:16:30 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 06BA633F3F2 for ; Mon, 25 Nov 2013 19:16:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id AEDC2E545E for ; Mon, 25 Nov 2013 19:16:28 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1385406879.4da95bcbc783096eee848f78e13e673d33c4e785.swift@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/logrotate.fc policy/modules/contrib/logrotate.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 4da95bcbc783096eee848f78e13e673d33c4e785 X-VCS-Branch: master Date: Mon, 25 Nov 2013 19:16:28 +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: fcbcbc89-f6b6-4e92-8440-80ad9c79ef54 X-Archives-Hash: 1d31933f474f53df35ea3854ab564812 commit: 4da95bcbc783096eee848f78e13e673d33c4e785 Author: Luis Ressel aixah de> AuthorDate: Sun Nov 17 12:53:07 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Nov 25 19:14:39 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4da95bcb Label /etc/cron.daily/logrotate correctly. This is used at least on Gentoo, but I could imagine this also exists on other distros. --- policy/modules/contrib/logrotate.fc | 1 + policy/modules/contrib/logrotate.te | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/logrotate.fc b/policy/modules/contrib/logrotate.fc index a11d5be..207ec10 100644 --- a/policy/modules/contrib/logrotate.fc +++ b/policy/modules/contrib/logrotate.fc @@ -1,3 +1,4 @@ +/etc/cron\.(daily|weekly)/logrotate -- gen_context(system_u:object_r:logrotate_exec_t,s0) /etc/cron\.(daily|weekly)/sysklogd -- gen_context(system_u:object_r:logrotate_exec_t,s0) /usr/sbin/logrotate -- gen_context(system_u:object_r:logrotate_exec_t,s0) diff --git a/policy/modules/contrib/logrotate.te b/policy/modules/contrib/logrotate.te index be0ab84..8e871fe 100644 --- a/policy/modules/contrib/logrotate.te +++ b/policy/modules/contrib/logrotate.te @@ -57,7 +57,7 @@ manage_files_pattern(logrotate_t, logrotate_var_lib_t, logrotate_var_lib_t) read_lnk_files_pattern(logrotate_t, logrotate_var_lib_t, logrotate_var_lib_t) files_var_lib_filetrans(logrotate_t, logrotate_var_lib_t, file) -can_exec(logrotate_t, logrotate_tmp_t) +can_exec(logrotate_t, { logrotate_exec_t logrotate_tmp_t }) kernel_read_system_state(logrotate_t) kernel_read_kernel_sysctls(logrotate_t)