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 BDCF1138A1A for ; Fri, 2 Jan 2015 17:22:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 289DAE077A; Fri, 2 Jan 2015 17:22:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8683CE077A for ; Fri, 2 Jan 2015 17:22:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 692C03406A4 for ; Fri, 2 Jan 2015 17:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1652FEBAC for ; Fri, 2 Jan 2015 17:22:31 +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: <1420219082.75128b920489e378bc417e10db1af7ed7edb0742.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/courier.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 75128b920489e378bc417e10db1af7ed7edb0742 X-VCS-Branch: master Date: Fri, 2 Jan 2015 17:22:31 +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: 8b3be256-96c9-43fa-b6af-14fd725f0ac9 X-Archives-Hash: 84a2689915ad5ea8f310960f080cb8d9 commit: 75128b920489e378bc417e10db1af7ed7edb0742 Author: Sven Vermeulen siphos be> AuthorDate: Wed Dec 31 16:09:54 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Jan 2 17:18:02 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=75128b92 Locate authdaemon socket and communicate with authdaemon Without this, authentication fails. The following is shown in the logs: Dec 30 19:36:54 localhost imapd: Connection, ip=[::ffff:192.168.100.152] Dec 30 19:36:54 localhost imapd: authdaemon: s_connect() failed: Permission denied Dec 30 19:36:54 localhost imapd: LOGIN FAILED, user=root, ip=[::ffff:192.168.100.152] Dec 30 19:36:54 localhost imapd: authentication error: Permission denied Through logon, the daemon (courier_pop_t) wants to locate the socket in /var/lib/courier to initiate communication with the authdaemon. Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/contrib/courier.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/contrib/courier.te b/policy/modules/contrib/courier.te index d59f878..e2b0c0d 100644 --- a/policy/modules/contrib/courier.te +++ b/policy/modules/contrib/courier.te @@ -137,6 +137,8 @@ allow courier_pop_t courier_tcpd_t:{ unix_stream_socket tcp_socket } rw_stream_s allow courier_pop_t courier_var_lib_t:file { read write }; +stream_connect_pattern(courier_pop_t, courier_var_lib_t, courier_var_lib_t, courier_authdaemon_t) + domtrans_pattern(courier_pop_t, courier_authdaemon_exec_t, courier_authdaemon_t) miscfiles_read_localization(courier_pop_t)