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 E03A0138202 for ; Mon, 12 Nov 2012 21:30:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BC0CE064E; Mon, 12 Nov 2012 21:30:35 +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 92A40E064E for ; Mon, 12 Nov 2012 21:30:34 +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 9F58E33DA01 for ; Mon, 12 Nov 2012 21:30:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id BCBE6E5436 for ; Mon, 12 Nov 2012 21:30:30 +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: <1352755475.9e80da63f0a14b7d7bd6a92e5ef8f57c79311f1a.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.fc X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 9e80da63f0a14b7d7bd6a92e5ef8f57c79311f1a X-VCS-Branch: master Date: Mon, 12 Nov 2012 21:30:30 +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: 6422ffa1-5375-4ad2-9271-12fb79b00213 X-Archives-Hash: 26a057f39bc6f7e3c109c7d1996ea463 commit: 9e80da63f0a14b7d7bd6a92e5ef8f57c79311f1a Author: Sven Vermeulen siphos be> AuthorDate: Mon Nov 12 21:24:35 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Mon Nov 12 21:24:35 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=9e80da63 Remove generic log label for cron location The /var/log/cron[^/]* line in the context definition takes higher precedence than the /var/log/cron.* line in the cron.fc file. As a result, when /var/log/cron.log is created it gets relabeled to var_log_t instead of staying with the cron_log_t type it should be. Removing the line so that the definitions in cron.log are used. --- policy/modules/system/logging.fc | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc index adabdf0..a00c3e0 100644 --- a/policy/modules/system/logging.fc +++ b/policy/modules/system/logging.fc @@ -41,7 +41,6 @@ ifdef(`distro_suse', ` /var/log/boot\.log -- gen_context(system_u:object_r:var_log_t,mls_systemhigh) /var/log/messages[^/]* gen_context(system_u:object_r:var_log_t,mls_systemhigh) /var/log/secure[^/]* gen_context(system_u:object_r:var_log_t,mls_systemhigh) -/var/log/cron[^/]* gen_context(system_u:object_r:var_log_t,mls_systemhigh) /var/log/maillog[^/]* gen_context(system_u:object_r:var_log_t,mls_systemhigh) /var/log/spooler[^/]* gen_context(system_u:object_r:var_log_t,mls_systemhigh) /var/log/audit(/.*)? gen_context(system_u:object_r:auditd_log_t,mls_systemhigh)