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 DAC0B1381F3 for ; Thu, 4 Jul 2013 17:32:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A49FE09C9; Thu, 4 Jul 2013 17:32:20 +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 E150EE09C9 for ; Thu, 4 Jul 2013 17:32:19 +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 F2DD733E8AB for ; Thu, 4 Jul 2013 17:32:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9AEDDE468F for ; Thu, 4 Jul 2013 17:32:16 +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: <1372958735.81df8db941d640d7bae701f68b3cefbecf06d7b8.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/ipsec.fc X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 81df8db941d640d7bae701f68b3cefbecf06d7b8 X-VCS-Branch: master Date: Thu, 4 Jul 2013 17:32:16 +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: 4ef69091-df9b-4b82-8a76-2f70fd4338df X-Archives-Hash: d2eede37bb7592b4c012ba6214a68359 commit: 81df8db941d640d7bae701f68b3cefbecf06d7b8 Author: Sven Vermeulen siphos be> AuthorDate: Thu Jul 4 17:25:35 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Jul 4 17:25:35 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=81df8db9 Use /var/lib/racoon location for Gentoo The racoon daemon in Gentoo uses /var/lib/racoon by default instead of the /var/racoon one as provided by the policy. So enhance the policy with this location as well. --- policy/modules/system/ipsec.fc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/system/ipsec.fc b/policy/modules/system/ipsec.fc index 74a2256..46d232a 100644 --- a/policy/modules/system/ipsec.fc +++ b/policy/modules/system/ipsec.fc @@ -39,3 +39,7 @@ /var/run/pluto(/.*)? gen_context(system_u:object_r:ipsec_var_run_t,s0) /var/run/racoon\.pid -- gen_context(system_u:object_r:ipsec_var_run_t,s0) + +ifdef(`distro_gentoo',` +/var/lib/racoon(/.*)? gen_context(system_u:object_r:ipsec_var_run_t,s0) +')