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 B4045138286 for ; Thu, 3 Jan 2013 16:51:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C76121C145; Thu, 3 Jan 2013 16:50:01 +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 CA36E21C142 for ; Thu, 3 Jan 2013 16:49:55 +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 CC05A33D95C for ; Thu, 3 Jan 2013 16:49:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C558AE5439 for ; Thu, 3 Jan 2013 16:49:51 +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: <1357230243.545015a51b5853256e45e308f6e83524d96923c5.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/logging.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 545015a51b5853256e45e308f6e83524d96923c5 X-VCS-Branch: master Date: Thu, 3 Jan 2013 16:49:51 +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: 38e7d766-b5d1-4b2f-a81b-7ab889a4a5bd X-Archives-Hash: a677b41cc80c453197a3e124d5d8844d commit: 545015a51b5853256e45e308f6e83524d96923c5 Author: Sven Vermeulen siphos be> AuthorDate: Mon Dec 17 09:42:45 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Jan 3 16:24:03 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=545015a5 Allow syslogger to manage cron log files (v2) Some cron daemons, including vixie-cron, support using the system logger for handling their logging events. Hence we allow syslogd_t to manage the cron logs, and put a file transition in place for the system logger when it creates the cron.log file. Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/system/logging.te | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te index 59b28e6..988419e 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -503,6 +503,11 @@ optional_policy(` ') optional_policy(` + cron_manage_log_files(syslogd_t) + cron_generic_log_filetrans_log(syslogd_t, file, "cron.log") +') + +optional_policy(` inn_manage_log(syslogd_t) inn_generic_log_filetrans_innd_log(syslogd_t, file, "news.crit") inn_generic_log_filetrans_innd_log(syslogd_t, file, "news.err")