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 138ED138010 for ; Wed, 29 Aug 2012 18:48:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FBC9E0458; Wed, 29 Aug 2012 18:48:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 12A46E0458 for ; Wed, 29 Aug 2012 18:48:04 +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 6E86933E467 for ; Wed, 29 Aug 2012 18:48:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4066BE5449 for ; Wed, 29 Aug 2012 18:48:02 +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: <1346264369.46fe38968ddff1b34e3c52fccff4615d046200a9.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: 46fe38968ddff1b34e3c52fccff4615d046200a9 X-VCS-Branch: master Date: Wed, 29 Aug 2012 18:48:02 +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: c15e965e-7fd5-4556-adbb-18ecc9bdf01b X-Archives-Hash: d41c025f40ef078dfe720c555afe4143 commit: 46fe38968ddff1b34e3c52fccff4615d046200a9 Author: Sven Vermeulen siphos be> AuthorDate: Wed Aug 29 18:19:29 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Aug 29 18:19:29 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=46fe3896 Have syslog-ng.persist label survive relabeling Syslog-ng already holds a filetrans when it writes files in the var_lib_t resources, causing the files to be labeled syslogd_var_lib_t. One of these files is the /var/lib/misc/syslog-ng.persist file. However, because no file context was defined for this file, a system-wide relabeling caused it to be turned back into var_lib_t. This fixes the context back to syslogd_var_lib_t. --- policy/modules/system/logging.fc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc index f73a25b..6add40e 100644 --- a/policy/modules/system/logging.fc +++ b/policy/modules/system/logging.fc @@ -24,7 +24,7 @@ /usr/sbin/syslog-ng -- gen_context(system_u:object_r:syslogd_exec_t,s0) /usr/sbin/syslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) -/var/lib/misc/syslog-ng\.persist- -- gen_context(system_u:object_r:syslogd_var_lib_t,s0) +/var/lib/misc/syslog-ng\.persist-? -- gen_context(system_u:object_r:syslogd_var_lib_t,s0) /var/lib/syslog-ng(/.*)? gen_context(system_u:object_r:syslogd_var_lib_t,s0) /var/lib/r?syslog(/.*)? gen_context(system_u:object_r:syslogd_var_lib_t,s0) /var/lib/syslog-ng.persist -- gen_context(system_u:object_r:syslogd_var_lib_t,s0)