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 84F68138010 for ; Mon, 29 Oct 2012 16:06:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3ABB721C0C0; Mon, 29 Oct 2012 16:06:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B3DEB21C0C0 for ; Mon, 29 Oct 2012 16:06:09 +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 1055F33D8D4 for ; Mon, 29 Oct 2012 16:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 8A107E5441 for ; Mon, 29 Oct 2012 16:06:06 +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: <1351526285.6fd8388f7404aec7baf1130f7f0220becf82c048.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: 6fd8388f7404aec7baf1130f7f0220becf82c048 X-VCS-Branch: master Date: Mon, 29 Oct 2012 16:06:06 +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: 9576bc9b-7c4c-4b0b-a758-5326cec2514a X-Archives-Hash: 94cacea1c977cd46bc595cb345c3df1f commit: 6fd8388f7404aec7baf1130f7f0220becf82c048 Author: Sven Vermeulen siphos be> AuthorDate: Mon Oct 29 15:58:05 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Mon Oct 29 15:58:05 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=6fd8388f System logger can write to logfiles The system logger, like syslog-ng, should be able to write to log files it has to manage. As this does not include only the var_log_t labeled ones, we allow write (and setattr) rights on the logfile files, and add_entry rights onto the directories that are labeled as logfile too. See bug #440128 --- policy/modules/system/logging.te | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te index eba1bcc..5588af2 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -470,6 +470,9 @@ userdom_dontaudit_use_unpriv_user_fds(syslogd_t) userdom_dontaudit_search_user_home_dirs(syslogd_t) ifdef(`distro_gentoo',` + allow syslogd_t syslog:dir add_entry_dir_perms; + allow syslogd_t syslog:file { write_file_perms setattr_file_perms }; + # default gentoo syslog-ng config appends kernel # and high priority messages to /dev/tty12 term_append_unallocated_ttys(syslogd_t)