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 0E9FB1381F3 for ; Thu, 4 Jul 2013 17:32:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5548FE096E; 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 DBB2DE096E 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 2AF3733E897 for ; Thu, 4 Jul 2013 17:32:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id BFA97E5459 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: <1372958819.3e86012d0cd7e77359dc6966a075e18fc44c9b7a.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.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 3e86012d0cd7e77359dc6966a075e18fc44c9b7a 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: dc38e5d9-ead3-4a4f-97fa-147ff496aa50 X-Archives-Hash: dbf29511f27311778b32fcc3f9add1df commit: 3e86012d0cd7e77359dc6966a075e18fc44c9b7a Author: Sven Vermeulen siphos be> AuthorDate: Thu Jul 4 17:26:59 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Jul 4 17:26:59 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=3e86012d Allow racoon to listen on its own socket When starting racoon, the daemon fails with the following error: Jul 4 19:23:57 test racoon: ERROR: listen(sockname:/var/lib/racoon/racoon.sock): Permission denied The denial speaks for itself: type=AVC msg=audit(1372958637.355:24805): avc: denied { listen } for pid=2981 comm="racoon" path="/var/lib/racoon/racoon.sock" scontext=system_u:system_r:racoon_t:s0 tcontext=system_u:system_r:racoon_t:s0 tclass=unix_stream_socket Add in the necessary permission set. --- policy/modules/system/ipsec.te | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/policy/modules/system/ipsec.te b/policy/modules/system/ipsec.te index 312cd04..223e02b 100644 --- a/policy/modules/system/ipsec.te +++ b/policy/modules/system/ipsec.te @@ -444,3 +444,11 @@ seutil_read_config(setkey_t) userdom_use_user_terminals(setkey_t) +ifdef(`distro_gentoo',` + ################################################ + # + # racoon policy + # + + allow racoon_t self:unix_stream_socket create_stream_socket_perms; +')