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 892AA1381F3 for ; Thu, 18 Apr 2013 19:58:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16DDFE0B7C; Thu, 18 Apr 2013 19:58:00 +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 AB6EAE0B7C for ; Thu, 18 Apr 2013 19:57:59 +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 B033733DEB7 for ; Thu, 18 Apr 2013 19:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4B6C6E4306 for ; Thu, 18 Apr 2013 19:57:57 +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: <1366314953.3d7cd5e42a6dbcaa6584c19fdadad58fcb6233bb.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/squid.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 3d7cd5e42a6dbcaa6584c19fdadad58fcb6233bb X-VCS-Branch: master Date: Thu, 18 Apr 2013 19:57:57 +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: 77b1d645-63bc-4112-a9e7-301decbbd782 X-Archives-Hash: 41b5016335220a2748db16cdda76719d commit: 3d7cd5e42a6dbcaa6584c19fdadad58fcb6233bb Author: Sven Vermeulen siphos be> AuthorDate: Thu Apr 18 19:55:53 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Apr 18 19:55:53 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=3d7cd5e4 Fix bug #466156 - Grant write privileges to squid on its log files The squid daemon currently seems to require write privileges on the files (squid_log_t): append no longer cuts it. This is confirmed for both the cache.log file as well as netdb.state file. Switching append_files_pattern to write_files_pattern. --- policy/modules/contrib/squid.te | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/policy/modules/contrib/squid.te b/policy/modules/contrib/squid.te index 221c560..8ad5645 100644 --- a/policy/modules/contrib/squid.te +++ b/policy/modules/contrib/squid.te @@ -238,3 +238,13 @@ optional_policy(` optional_policy(` udev_read_db(squid_t) ') + +ifdef(`distro_gentoo',` + ################################### + # + # Local policy + # + + # Instead of append, see bug #466156 + write_files_pattern(squid_t, squid_log_t, squid_log_t) +')