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 2DF60138AD0 for ; Fri, 2 Jan 2015 17:22:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A20D6E0785; 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 B34A6E0785 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 AFD403406EB 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 586E5EBB0 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: <1420219094.9afb261dcdc120ce6467c25d435310ffea31b64b.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: 9afb261dcdc120ce6467c25d435310ffea31b64b 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: 8e235ea5-c560-4d11-b69e-19df012707e0 X-Archives-Hash: 38d7bffc14f601f81282c66e1d695cb6 commit: 9afb261dcdc120ce6467c25d435310ffea31b64b Author: Sven Vermeulen siphos be> AuthorDate: Wed Dec 31 16:09:58 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Jan 2 17:18:14 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=9afb261d Courier IMAP needs to manage the users' maildir Without these permissions, the logon immediately terminates and the following shows up in the logs: Dec 30 19:45:33 localhost imapd: Connection, ip=[::ffff:192.168.100.152] Dec 30 19:45:33 localhost imapd: chdir .maildir: Permission denied Dec 30 19:45:33 localhost imapd: root: Permission denied The first denial (and many similar ones follow when granted): type=AVC msg=audit(1419968733.163:197): avc: denied { search } for pid=4292 comm="courier-imapd" name=".maildir" dev="vda3" ino=393221 scontext=system_u:system_r:courier_pop_t:s0 tcontext=root:object_r:mail_home_rw_t:s0 tclass=dir Signed-off-by: Sven Vermeulen siphos.be> --- policy/modules/contrib/courier.te | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/policy/modules/contrib/courier.te b/policy/modules/contrib/courier.te index e3a3b84..4746644 100644 --- a/policy/modules/contrib/courier.te +++ b/policy/modules/contrib/courier.te @@ -148,8 +148,7 @@ corecmd_exec_shell(courier_pop_t) miscfiles_read_localization(courier_pop_t) -userdom_manage_user_home_content_files(courier_pop_t) -userdom_manage_user_home_content_dirs(courier_pop_t) +mta_manage_mail_home_rw_content(courier_pop_t) ######################################## #