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 091EF1389E2 for ; Tue, 30 Dec 2014 19:57:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E3DCE0930; Tue, 30 Dec 2014 19:57:52 +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 CAD60E0930 for ; Tue, 30 Dec 2014 19:57:51 +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 98EFD340687 for ; Tue, 30 Dec 2014 19:57:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 62B05E821 for ; Tue, 30 Dec 2014 19:57:48 +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: <1419969437.1546335dcf467c2a4d85eb4a956e229e6ff09692.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: 1546335dcf467c2a4d85eb4a956e229e6ff09692 X-VCS-Branch: master Date: Tue, 30 Dec 2014 19:57:48 +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: b4b17287-4c29-4013-8e34-9a2cf7a734c9 X-Archives-Hash: 8afbf9020c088b7f678b6e6ba3443849 commit: 1546335dcf467c2a4d85eb4a956e229e6ff09692 Author: Sven Vermeulen siphos be> AuthorDate: Tue Dec 30 19:57:17 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Tue Dec 30 19:57:17 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=1546335d Fix bug 534030 - Update on courier policy with documentation in comments --- policy/modules/contrib/courier.te | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/policy/modules/contrib/courier.te b/policy/modules/contrib/courier.te index 213a094..ba0545c 100644 --- a/policy/modules/contrib/courier.te +++ b/policy/modules/contrib/courier.te @@ -186,42 +186,36 @@ optional_policy(` ') ifdef(`distro_gentoo',` - - ######################################## - # - # Courier authdaemon policy - # - read_lnk_files_pattern(courier_authdaemon_t, courier_var_lib_t, courier_var_lib_t) - - optional_policy(` - mysql_stream_connect(courier_authdaemon_t) - ') - ######################################## # # Courier imap/pop daemon policy # - # Switch after succesfull authentication + # Switch after succesfull authentication (bug 534030) allow courier_pop_t self:capability { setuid setgid }; - files_search_var_lib(courier_pop_t) - search_dirs_pattern(courier_pop_t, courier_var_lib_t, courier_var_lib_t) - read_lnk_files_pattern(courier_pop_t, courier_var_lib_t, courier_var_lib_t) - - # Executes script /usr/lib64/courier-imap/courier-imapd.indirect after authentication and to start user session + # Executes script /usr/lib64/courier-imap/courier-imapd.indirect after authentication and to start user session (bug 534030) corecmd_exec_shell(courier_pop_t) - courier_authdaemon_rw_inherited_stream_sockets(courier_pop_t) + # Locate authdaemon socket and communicate with authdaemon (bug 534030) + stream_connect_pattern(courier_pop_t, courier_var_lib_t, courier_var_run_t, courier_authdaemon_t) + + # Manage maildir of users (bug 534030) + mta_manage_mail_home_rw_content(courier_pop_t) ######################################## # # Courier tcpd daemon policy # - # Startup of courier-imapd creates /var/run/imapd.pid.lock and imapd.lock + # Startup of courier-imapd creates /var/run/imapd.pid.lock and imapd.lock (bug 534030) files_pid_filetrans(courier_tcpd_t, courier_var_run_t, file) - courier_authdaemon_stream_connect(courier_tcpd_t) - courier_domtrans_authdaemon(courier_tcpd_t) + ######################################## + # + # Courier authdaemon policy + # + + # Grant authdaemon getattr rights on security_t so that it can check if SELinux is enabled (needed through pam support) (bug 534030) + selinux_getattr_fs(courier_authdaemon_t) ')