From e57dd4e3a7ed8173d9e84834bb5d0869944c1f1d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 2 Apr 2021 10:10:08 +0100 Subject: [PATCH] Firefox: gvfsd and gnome support --- apparmor.d/groups/browsers/firefox | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apparmor.d/groups/browsers/firefox b/apparmor.d/groups/browsers/firefox index e8dd41f8..3add4bfe 100644 --- a/apparmor.d/groups/browsers/firefox +++ b/apparmor.d/groups/browsers/firefox @@ -1,5 +1,6 @@ # apparmor.d - Full set of apparmor profiles # Copyright (C) 2015-2020 Mikhail Morfikov +# 2021 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , @@ -59,8 +60,8 @@ profile firefox @{exec_path} { @{MOZ_LIBDIR}/*.so mr, @{MOZ_LIBDIR}/crashreporter rPx, @{MOZ_LIBDIR}/minidump-analyzer rPx, - #@{MOZ_LIBDIR}/pingsender rPx, - #@{MOZ_LIBDIR}/plugin-container rPx, + @{MOZ_LIBDIR}/pingsender rPx, + @{MOZ_LIBDIR}/plugin-container rPx, /usr/share/firefox/{,**} r, /etc/firefox/{,**} r, @@ -73,6 +74,9 @@ profile firefox @{exec_path} { # To be able to read docs /usr/share/doc/{,**} r, + # + /usr/{lib,libexec}/gvfsd-metadata rPx -> gvfsd-metadata, + # Firefox home files owner @{MOZ_HOMEDIR}/ rw, owner @{MOZ_HOMEDIR}/{extensions,systemextensionsdev}/ rw, @@ -186,6 +190,14 @@ profile firefox @{exec_path} { # file_inherit owner /dev/tty[0-9]* rw, + /etc/opensc.conf r, + + owner @{HOME}/ r, + @{sys}/cgroup/cpu,cpuacct/user.slice/cpu.cfs_quota_us r, + @{sys}/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us r, + + @{user_share_dirs}/gvfs-metadata/home r, + @{user_share_dirs}/gvfs-metadata/home-*.log r, include owner @{run}/user/[0-9]*/dconf/ rw,