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 65ED3138334 for ; Sun, 24 Jun 2018 08:46:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9326E095F; Sun, 24 Jun 2018 08:46:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C197FE095F for ; Sun, 24 Jun 2018 08:46:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 80DED335CA1 for ; Sun, 24 Jun 2018 08:46:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 998D42E4 for ; Sun, 24 Jun 2018 08:46:43 +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: <1528981013.76c143d44f9ca0f671344b247b24230c816d9ace.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/openoffice.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 76c143d44f9ca0f671344b247b24230c816d9ace X-VCS-Branch: master Date: Sun, 24 Jun 2018 08:46:43 +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: 82476b5f-4d0c-4f3b-b90f-04b131d27cc4 X-Archives-Hash: dfe2138cb1a44824ba6dfc09c1abb54f commit: 76c143d44f9ca0f671344b247b24230c816d9ace Author: Sven Vermeulen siphos be> AuthorDate: Sun Mar 25 11:57:10 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Jun 14 12:56:53 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=76c143d4 Make openoffice user content access optional The openoffice domain should not have full manage rights on all user content. Instead, it is granted manage rights on the documents (xdg_documents_t) while the other privileges are made optional through the openoffice_{read,manage}_{generic,all}_user_content booleans. Changes since v1: - Move tunable definitions inside template Signed-off-by: Sven Vermeulen siphos.be> policy/modules/contrib/openoffice.te | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/policy/modules/contrib/openoffice.te b/policy/modules/contrib/openoffice.te index d2371f57..6da6335d 100644 --- a/policy/modules/contrib/openoffice.te +++ b/policy/modules/contrib/openoffice.te @@ -94,18 +94,14 @@ sysnet_dns_name_resolve(ooffice_t) userdom_dontaudit_exec_user_home_content_files(ooffice_t) userdom_dontaudit_manage_user_tmp_dirs(ooffice_t) - -userdom_read_user_tmp_files(ooffice_t) -userdom_manage_user_home_content_dirs(ooffice_t) -userdom_manage_user_home_content_files(ooffice_t) -userdom_manage_user_home_content_symlinks(ooffice_t) -userdom_user_home_dir_filetrans_user_home_content(ooffice_t, { dir file lnk_file fifo_file sock_file }) - userdom_manage_user_tmp_dirs(ooffice_t) userdom_manage_user_tmp_sockets(ooffice_t) - userdom_use_inherited_user_terminals(ooffice_t) +userdom_user_content_access_template(openoffice, ooffice_t) + +xdg_manage_documents(ooffice_t) + tunable_policy(`openoffice_allow_update',` corenet_tcp_connect_http_port(ooffice_t) ')