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 A9208138010 for ; Wed, 29 Aug 2012 19:31:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11492E03E4; Wed, 29 Aug 2012 19:31:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D2CDCE03E4 for ; Wed, 29 Aug 2012 19:31:49 +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 3044C33D710 for ; Wed, 29 Aug 2012 19:31:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id DB4FEE543C for ; Wed, 29 Aug 2012 19:31:47 +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: <1346267326.f3c4bf8b57e43f788a38ec3065e4e6c4281018fa.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: f3c4bf8b57e43f788a38ec3065e4e6c4281018fa X-VCS-Branch: master Date: Wed, 29 Aug 2012 19:31:47 +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: 87fc4cf6-2032-46fb-93d0-06fb2cdc6b51 X-Archives-Hash: 166d4ca7fdfdc98aaf2d54441254ab00 commit: f3c4bf8b57e43f788a38ec3065e4e6c4281018fa Author: Sven Vermeulen siphos be> AuthorDate: Wed Aug 29 19:08:46 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Aug 29 19:08:46 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f3c4bf8b Syslog-ng also creates the /var/lib/syslog location If /var/lib/syslog does not exist yet, then syslog-ng (running in syslogd_t) will attempt to create it. Hence expand the file transition to directories too. --- policy/modules/system/logging.te | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te index 2045470..9cebc41 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -440,7 +440,7 @@ files_read_etc_runtime_files(syslogd_t) files_dontaudit_search_isid_type_dirs(syslogd_t) files_read_kernel_symbol_table(syslogd_t) files_rw_var_lib_dirs(syslogd_t) -files_var_lib_filetrans(syslogd_t, syslogd_var_lib_t, file) +files_var_lib_filetrans(syslogd_t, syslogd_var_lib_t, { file dir }) fs_getattr_all_fs(syslogd_t) fs_search_auto_mountpoints(syslogd_t)