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 94FC313877A for ; Mon, 1 Sep 2014 20:11:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2EF57E0BA5; Mon, 1 Sep 2014 20:11:30 +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 A48C5E0AD9 for ; Mon, 1 Sep 2014 20:11:29 +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 9BA0C33F8B6 for ; Mon, 1 Sep 2014 20:11:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3CB104751 for ; Mon, 1 Sep 2014 20:11:27 +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: <1409602058.c604f614aeae6674059c83c4e1d574a1c115e7df.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: c604f614aeae6674059c83c4e1d574a1c115e7df X-VCS-Branch: master Date: Mon, 1 Sep 2014 20:11:27 +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: 54cb1a0a-f3c0-47f7-8040-161617942454 X-Archives-Hash: 5c586a520fd5b58c66562b260d25c9c6 commit: c604f614aeae6674059c83c4e1d574a1c115e7df Author: Sven Vermeulen siphos be> AuthorDate: Mon Sep 1 20:07:38 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Sep 1 20:07:38 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=c604f614 After succesful authentication, the courier_pop_t session uses setuid/setgid to switch to the proper user credentials to access the user mailbox --- policy/modules/contrib/courier.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/contrib/courier.te b/policy/modules/contrib/courier.te index 4fdfade..58faaf7 100644 --- a/policy/modules/contrib/courier.te +++ b/policy/modules/contrib/courier.te @@ -201,6 +201,10 @@ ifdef(`distro_gentoo',` # # Courier imap/pop daemon policy # + + # Switch after succesfull authentication + 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)