From 946a4371ca6228e60b834ef7c5e30a522858d302 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 29 Nov 2021 18:42:11 +0100 Subject: [PATCH] Add a profile for Flatseal --- .../com.github.tchx84.Flatseal.profile | 62 +++++++++++++++++++ src/firecfg/firecfg.config | 1 + 2 files changed, 63 insertions(+) create mode 100644 etc/profile-a-l/com.github.tchx84.Flatseal.profile diff --git a/etc/profile-a-l/com.github.tchx84.Flatseal.profile b/etc/profile-a-l/com.github.tchx84.Flatseal.profile new file mode 100644 index 00000000000..56683074602 --- /dev/null +++ b/etc/profile-a-l/com.github.tchx84.Flatseal.profile @@ -0,0 +1,62 @@ +# Firejail profile for flatseal +# This file is overwritten after every install/update +# Persistent local customizations +include com.github.tchx84.Flatseal.local +# Persistent global definitions +include globals.local + +# Reading dconf is required for GTK theme to work. +noblacklist ${HOME}/.config/dconf/ +noblacklist ${HOME}/.local/share/flatpak/overrides +noblacklist /var/lib/flatpak/app + +include allow-gjs.inc + +include disable-common.inc +include disable-devel.inc +include disable-exec.inc +include disable-interpreters.inc +include disable-programs.inc +include disable-shell.inc +include disable-proc.inc +include disable-xdg.inc + +mkdir ${HOME}/.local/share/flatpak/overrides +whitelist ${HOME}/.config/dconf/ +whitelist ${HOME}/.local/share/flatpak/overrides + +apparmor +caps.drop all +net none +no3d +nodvd +nogroups +noinput +nonewprivs +noroot +nosound +notv +nou2f +novideo +protocol unix +seccomp +seccomp.block-secondary +shell none +tracelog + +disable-mnt +private-bin com.github.tchx84.Flatseal,gjs +private-cache +private-dev +private-etc alternatives,dconf,fonts,gtk-3.0,ld.so.cache,ld.so.preload +private-tmp + +dbus-user filter +dbus-user.own com.github.tchx84.Flatseal +dbus-user.talk ca.desrt.dconf +dbus-user.talk org.freedesktop.impl.portal.PermissionStore +dbus-user.talk org.gnome.Software +dbus-system none + +read-only ${HOME}/.config/dconf/ +read-write ${HOME}/.local/share/flatpak/overrides diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 117c6f6aea5..2fac76c8f6a 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config @@ -157,6 +157,7 @@ com.github.bleakgrey.tootle com.github.dahenson.agenda com.github.johnfactotum.Foliate com.github.phase1geo.minder +com.github.tchx84.Flatseal com.gitlab.newsflash conkeror conky