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 94F61139694 for ; Thu, 25 May 2017 16:43:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE97B21C121; Thu, 25 May 2017 16:43:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 BE59F21C121 for ; Thu, 25 May 2017 16:43:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02F953416AB for ; Thu, 25 May 2017 16:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 68FB37468 for ; Thu, 25 May 2017 16:43:31 +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: <1495729911.eac236a86cba23a1d31e6f9e2c1e530736611bbe.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/gnome.te policy/modules/contrib/openoffice.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: eac236a86cba23a1d31e6f9e2c1e530736611bbe X-VCS-Branch: master Date: Thu, 25 May 2017 16:43:31 +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: 7a6e40b4-e440-43a2-bd20-fba651b26a7e X-Archives-Hash: 66a524998e5c5ed5ce338266694632c1 commit: eac236a86cba23a1d31e6f9e2c1e530736611bbe Author: Guido Trentalancia trentalancia net> AuthorDate: Wed May 24 23:43:56 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu May 25 16:31:51 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=eac236a8 gnome: improved integration with openoffice Minor update for the Apache OpenOffice(R) module: part 3/3. This patch introduces minor changes in the gnome module for smoother integration with Apache OpenOffice(R). Signed-off-by: Guido Trentalancia policy/modules/contrib/gnome.te | 7 ++++++- policy/modules/contrib/openoffice.if | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/gnome.te b/policy/modules/contrib/gnome.te index 1b53cb4f..0377c479 100644 --- a/policy/modules/contrib/gnome.te +++ b/policy/modules/contrib/gnome.te @@ -98,7 +98,8 @@ kernel_read_system_state(gconfd_t) files_read_var_lib_files(gconfd_t) userdom_manage_user_tmp_dirs(gconfd_t) -userdom_tmp_filetrans_user_tmp(gconfd_t, dir) +userdom_manage_user_tmp_sockets(gconfd_t) +userdom_tmp_filetrans_user_tmp(gconfd_t, { dir sock_file }) userdom_user_runtime_filetrans_user_tmp(gconfd_t, dir) optional_policy(` @@ -111,6 +112,10 @@ optional_policy(` nscd_dontaudit_search_pid(gconfd_t) ') +optional_policy(` + ooffice_stream_connect(gconfd_t) +') + ############################## # # Keyring-daemon local policy diff --git a/policy/modules/contrib/openoffice.if b/policy/modules/contrib/openoffice.if index 4cb669c8..5580aaf7 100644 --- a/policy/modules/contrib/openoffice.if +++ b/policy/modules/contrib/openoffice.if @@ -112,3 +112,23 @@ interface(`ooffice_dbus_chat',` allow $1 ooffice_t:dbus send_msg; allow ooffice_t $1:dbus send_msg; ') + +######################################## +## +## Connect to openoffice using a +## unix domain stream socket. +## +## +## +## Domain allowed access. +## +## +# +interface(`ooffice_stream_connect',` + gen_require(` + type ooffice_t, ooffice_tmp_t; + ') + + files_search_tmp($1) + stream_connect_pattern($1, ooffice_tmp_t, ooffice_tmp_t, ooffice_t) +')