From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 34E4C138331 for ; Mon, 3 Oct 2016 06:26:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91C2E21C0CA; Mon, 3 Oct 2016 06:26:44 +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 775CA21C0CA for ; Mon, 3 Oct 2016 06:26:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 4382F340E10 for ; Mon, 3 Oct 2016 06:26:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF8F724B3 for ; Mon, 3 Oct 2016 06:26:34 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1475475213.c568bc4bfa98a347210c4ffd3a8aebe1a203d2d8.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/evolution.if policy/modules/contrib/gpg.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: c568bc4bfa98a347210c4ffd3a8aebe1a203d2d8 X-VCS-Branch: next Date: Mon, 3 Oct 2016 06:26:34 +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: 7a8a6f2a-691e-41a9-b533-7d50f20ce49b X-Archives-Hash: e99215e024102c4b27228777a867cf10 commit: c568bc4bfa98a347210c4ffd3a8aebe1a203d2d8 Author: Guido Trentalancia trentalancia net> AuthorDate: Fri Sep 2 11:35:53 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Oct 3 06:13:33 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c568bc4b gpg: public key signature verification in evolution Let gpg verify public key signatures in the evolution mail client application. It doesn't need write permissions on such files for signing/encrypting messages. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/contrib/evolution.if | 21 +++++++++++++++++++++ policy/modules/contrib/gpg.te | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/policy/modules/contrib/evolution.if b/policy/modules/contrib/evolution.if index d9c17d2..7c21ba1 100644 --- a/policy/modules/contrib/evolution.if +++ b/policy/modules/contrib/evolution.if @@ -128,6 +128,27 @@ interface(`evolution_stream_connect',` ######################################## ## +## Read evolution orbit temporary +## files. +## +## +## +## Domain allowed access. +## +## +# +interface(`evolution_read_orbit_tmp_files',` + gen_require(` + type evolution_orbit_tmp_t; + ') + + files_search_tmp($1) + read_files_pattern($1, evolution_orbit_tmp_t, evolution_orbit_tmp_t) +') + + +######################################## +## ## Send and receive messages from ## evolution over dbus. ## diff --git a/policy/modules/contrib/gpg.te b/policy/modules/contrib/gpg.te index 072047d..0eedb45 100644 --- a/policy/modules/contrib/gpg.te +++ b/policy/modules/contrib/gpg.te @@ -147,6 +147,10 @@ tunable_policy(`use_samba_home_dirs',` ') optional_policy(` + evolution_read_orbit_tmp_files(gpg_t) + ') + +optional_policy(` gnome_read_generic_home_content(gpg_t) gnome_stream_connect_all_gkeyringd(gpg_t) ') From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 31AD5138330 for ; Mon, 3 Oct 2016 06:21:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41AA021C090; Mon, 3 Oct 2016 06:20:59 +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 2723121C090 for ; Mon, 3 Oct 2016 06:20:59 +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 0D4A6340E12 for ; Mon, 3 Oct 2016 06:20:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0077C24B8 for ; Mon, 3 Oct 2016 06:20:53 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1475475213.c568bc4bfa98a347210c4ffd3a8aebe1a203d2d8.perfinion@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/evolution.if policy/modules/contrib/gpg.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: c568bc4bfa98a347210c4ffd3a8aebe1a203d2d8 X-VCS-Branch: master Date: Mon, 3 Oct 2016 06:20:53 +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: 9beb312d-ad69-4d8d-bee0-e52af7e05f65 X-Archives-Hash: 9eeec84c34b2c61ff4192e0547cf6080 Message-ID: <20161003062053.gW_YZXGFH0Cig0q_2rcKs96bv9iVv7qNnLaH6KVMiYM@z> commit: c568bc4bfa98a347210c4ffd3a8aebe1a203d2d8 Author: Guido Trentalancia trentalancia net> AuthorDate: Fri Sep 2 11:35:53 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Oct 3 06:13:33 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c568bc4b gpg: public key signature verification in evolution Let gpg verify public key signatures in the evolution mail client application. It doesn't need write permissions on such files for signing/encrypting messages. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/contrib/evolution.if | 21 +++++++++++++++++++++ policy/modules/contrib/gpg.te | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/policy/modules/contrib/evolution.if b/policy/modules/contrib/evolution.if index d9c17d2..7c21ba1 100644 --- a/policy/modules/contrib/evolution.if +++ b/policy/modules/contrib/evolution.if @@ -128,6 +128,27 @@ interface(`evolution_stream_connect',` ######################################## ## +## Read evolution orbit temporary +## files. +## +## +## +## Domain allowed access. +## +## +# +interface(`evolution_read_orbit_tmp_files',` + gen_require(` + type evolution_orbit_tmp_t; + ') + + files_search_tmp($1) + read_files_pattern($1, evolution_orbit_tmp_t, evolution_orbit_tmp_t) +') + + +######################################## +## ## Send and receive messages from ## evolution over dbus. ## diff --git a/policy/modules/contrib/gpg.te b/policy/modules/contrib/gpg.te index 072047d..0eedb45 100644 --- a/policy/modules/contrib/gpg.te +++ b/policy/modules/contrib/gpg.te @@ -147,6 +147,10 @@ tunable_policy(`use_samba_home_dirs',` ') optional_policy(` + evolution_read_orbit_tmp_files(gpg_t) + ') + +optional_policy(` gnome_read_generic_home_content(gpg_t) gnome_stream_connect_all_gkeyringd(gpg_t) ')