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 584E71396D0 for ; Fri, 15 Sep 2017 03:42:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB128E0CCD; Fri, 15 Sep 2017 03:42:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 BAE27E0CCD for ; Fri, 15 Sep 2017 03:42:47 +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 1DD2933FE2A for ; Fri, 15 Sep 2017 03:42:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 221BE9089 for ; Fri, 15 Sep 2017 03:42: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: <1505417684.b3610b7a3b119e7d912087d14b982a0287e1c25c.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/mozilla.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: b3610b7a3b119e7d912087d14b982a0287e1c25c X-VCS-Branch: master Date: Fri, 15 Sep 2017 03:42: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: d3708ed3-2a97-462c-b764-f2cdb4b33ddf X-Archives-Hash: fcbc2d3e961ce47c04032995b63d7c29 commit: b3610b7a3b119e7d912087d14b982a0287e1c25c Author: Luis Ressel aixah de> AuthorDate: Tue Sep 12 22:07:27 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Sep 14 19:34:44 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b3610b7a mozilla: Add neccessary map permissions The mozilla_home_t access is needed for sqlite (ff won't even start up without it), while the mozilla_tmp_t mapping appears to be related to the handling of addons. policy/modules/contrib/mozilla.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/mozilla.te b/policy/modules/contrib/mozilla.te index c6c51570..fdc25f9c 100644 --- a/policy/modules/contrib/mozilla.te +++ b/policy/modules/contrib/mozilla.te @@ -93,7 +93,7 @@ allow mozilla_t mozilla_plugin_t:unix_stream_socket rw_socket_perms; allow mozilla_t mozilla_plugin_t:fd use; allow mozilla_t { mozilla_home_t mozilla_plugin_home_t }:dir manage_dir_perms; -allow mozilla_t { mozilla_home_t mozilla_plugin_home_t }:file manage_file_perms; +allow mozilla_t { mozilla_home_t mozilla_plugin_home_t }:file { manage_file_perms map }; allow mozilla_t mozilla_home_t:lnk_file manage_lnk_file_perms; userdom_user_home_dir_filetrans(mozilla_t, mozilla_home_t, dir, ".galeon") userdom_user_home_dir_filetrans(mozilla_t, mozilla_home_t, dir, ".mozilla") @@ -105,6 +105,7 @@ filetrans_pattern(mozilla_t, mozilla_home_t, mozilla_plugin_home_t, dir, "plugin manage_files_pattern(mozilla_t, mozilla_tmp_t, mozilla_tmp_t) manage_lnk_files_pattern(mozilla_t, mozilla_tmp_t, mozilla_tmp_t) manage_dirs_pattern(mozilla_t, mozilla_tmp_t, mozilla_tmp_t) +allow mozilla_t mozilla_tmp_t:file map; files_tmp_filetrans(mozilla_t, mozilla_tmp_t, { file dir }) manage_files_pattern(mozilla_t, mozilla_tmpfs_t, mozilla_tmpfs_t)