From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-907864-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 84734138C8E for <garchives@archives.gentoo.org>; Mon, 24 Oct 2016 15:46:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9703EE0B02; Mon, 24 Oct 2016 15:46:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5DEFCE0B02 for <gentoo-commits@lists.gentoo.org>; Mon, 24 Oct 2016 15:46:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 820A634167B for <gentoo-commits@lists.gentoo.org>; Mon, 24 Oct 2016 15:45:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 56D3824AA for <gentoo-commits@lists.gentoo.org>; Mon, 24 Oct 2016 15:45:52 +0000 (UTC) From: "Sven Vermeulen" <swift@gentoo.org> 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" <swift@gentoo.org> Message-ID: <1475474714.ad72efd64eb17bf500c13b58120437b3dacc4aab.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/evolution.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: ad72efd64eb17bf500c13b58120437b3dacc4aab X-VCS-Branch: swift Date: Mon, 24 Oct 2016 15:45:52 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7d755cd9-162a-4522-8b78-8bc5c55005c0 X-Archives-Hash: 13ae295a9fb71e2ec3a32ce6b83da5fd commit: ad72efd64eb17bf500c13b58120437b3dacc4aab Author: Chris PeBenito <pebenito <AT> ieee <DOT> org> AuthorDate: Thu Sep 8 23:15:11 2016 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Mon Oct 3 06:05:14 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ad72efd6 evolution: Read user certs from Guido Trentalancia. policy/modules/contrib/evolution.te | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/evolution.te b/policy/modules/contrib/evolution.te index 55ee470..a3cf532 100644 --- a/policy/modules/contrib/evolution.te +++ b/policy/modules/contrib/evolution.te @@ -1,10 +1,19 @@ -policy_module(evolution, 2.4.1) +policy_module(evolution, 2.4.2) ######################################## # # Declarations # +## <desc> +## <p> +## Allow evolution to create and write +## user certificates in addition to +## being able to read them +## </p> +## </desc> +gen_tunable(evolution_manage_user_certs, false) + attribute_role evolution_roles; type evolution_t; @@ -185,6 +194,13 @@ udev_read_state(evolution_t) userdom_use_user_terminals(evolution_t) +tunable_policy(`evolution_manage_user_certs',` + userdom_manage_user_certs(evolution_t) +',` + userdom_dontaudit_manage_user_certs(evolution_t) + userdom_read_user_certs(evolution_t) +') + userdom_manage_user_tmp_dirs(evolution_t) userdom_manage_user_tmp_files(evolution_t) @@ -437,6 +453,13 @@ miscfiles_read_generic_certs(evolution_server_t) userdom_dontaudit_read_user_home_content_files(evolution_server_t) +tunable_policy(`evolution_manage_user_certs',` + userdom_manage_user_certs(evolution_server_t) +',` + userdom_dontaudit_manage_user_certs(evolution_server_t) + userdom_read_user_certs(evolution_server_t) +') + tunable_policy(`use_nfs_home_dirs',` fs_manage_nfs_dirs(evolution_server_t) fs_manage_nfs_files(evolution_server_t)