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 6632A1381F3 for ; Fri, 16 Aug 2013 13:53:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41745E0E81; Fri, 16 Aug 2013 13:53:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CED12E0E7E for ; Fri, 16 Aug 2013 13:53:42 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7976133EA92 for ; Fri, 16 Aug 2013 13:53:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C4787E468F for ; Fri, 16 Aug 2013 13:53:38 +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: <1376660866.b6e8219543a765d1ecf4130c81b17d829f928902.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/googletalk.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: b6e8219543a765d1ecf4130c81b17d829f928902 X-VCS-Branch: master Date: Fri, 16 Aug 2013 13:53:38 +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: bb0baf35-f58d-42ff-8d33-e01b69c22cd1 X-Archives-Hash: a00894def04beab51a1c8b61417f27f7 commit: b6e8219543a765d1ecf4130c81b17d829f928902 Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 16 13:47:46 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Fri Aug 16 13:47:46 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=b6e82195 Create googletalk_plugin_domain interface The googletalk_plugin_domain interface is meant to assign the right set of privileges to web server domains that invoke and interact with the GoogleTalk plugin. --- policy/modules/contrib/googletalk.if | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/policy/modules/contrib/googletalk.if b/policy/modules/contrib/googletalk.if index 356f592..5035980 100644 --- a/policy/modules/contrib/googletalk.if +++ b/policy/modules/contrib/googletalk.if @@ -2,6 +2,36 @@ ## Google Talk ## +########################################## +## +## Grant the plugin domain the needed privileges to launch and +## interact with the GoogleTalk application. Used for web browser +## plugin domains. +## +## +## +## Domain allowed access +## +## +# +interface(`googletalk_plugin_domain',` + gen_require(` + type googletalk_plugin_t; + type googetalk_plugin_xdg_config_t; + ') + + allow $1 googletalk_plugin_t:fd use; + allow $1 googletalk_plugin_t:unix_stream_socket { read write }; + + googletalk_domtrans_plugin($1) + + # Create .config/google-googletalkplugin with correct type + manage_dirs_pattern($1, googletalk_plugin_xdg_config_t, googletalk_plugin_xdg_config_t) + manage_files_pattern($1, googletalk_plugin_xdg_config_t, googletalk_plugin_xdg_config_t) + xdg_config_home_filetrans($1, googletalk_plugin_xdg_config_t, dir, "google-googletalkplugin") + xdg_search_config_home_dirs($1) +') + ####################################### ## ## Execute Google talk plugin in the Google talk plugin domain