From b3967fade379b5b6a073df3d42574455314b6db6 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Sun, 30 Jun 2019 20:05:52 +0200 Subject: add profile for zeal --- README | 1 + README.md | 3 +-- RELNOTES | 2 +- etc/disable-programs.inc | 3 +++ etc/zeal.profile | 56 ++++++++++++++++++++++++++++++++++++++++++++++ src/firecfg/firecfg.config | 1 + 6 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 etc/zeal.profile diff --git a/README b/README index 55edc0ebe..5e7541903 100644 --- a/README +++ b/README @@ -575,6 +575,7 @@ rusty-snake (https://github.com/rusty-snake) - added profiles: ktouch, yelp, klatexformula, klatexformula_cmdl - added profiles: pandoc, gnome-sound-recorder, godot, newsbeuter - added profiles: keepassxc-cli, keepassxc-proxy, rhythmbox-client + - added profiles: zeal - many profile fixing and hardening - some typo fixes - added profile templates diff --git a/README.md b/README.md index e1a79120a..0694d51a1 100644 --- a/README.md +++ b/README.md @@ -115,5 +115,4 @@ We also keep a list of profile fixes for previous released versions in [etc-fixe ## New profiles: -klatexformula, klatexformula_cmdl, links, pandoc, qgis, teams-for-linux, xlinks, OpenArena, gnome-sound-recorder, godot, tcpdump, tshark, keepassxc-cli, keepassxc-proxy, newsbeuter, rhythmbox-client, -jerry +gnome-sound-recorder, godot, jerry, keepassxc-cli, keepassxc-proxy, klatexformula, klatexformula_cmdl, links, newsbeuter, OpenArena, pandoc, qgis, rhythmbox-client, tcpdump, teams-for-linux, tshark, xlinks, zeal diff --git a/RELNOTES b/RELNOTES index a00a27b32..c35b2971a 100644 --- a/RELNOTES +++ b/RELNOTES @@ -4,7 +4,7 @@ firejail (0.9.61) baseline; urgency=low * new profiles: qgis, klatexformula, klatexformula_cmdl, links, xlinks * new profiles: pandoc, teams-for-linux, OpenArena, gnome-sound-recorder * new profiles: godot, tcpdump, tshark, newsbeuter, keepassxc-cli - * new profiles: keepassxc-proxy, rhythmbox-client, jerry + * new profiles: keepassxc-proxy, rhythmbox-client, jerry, zeal -- netblue30 Sat, 1 Jun 2019 08:00:00 -0500 firejail (0.9.60) baseline; urgency=low diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index 679a8c0a0..b3c83045b 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc @@ -110,6 +110,7 @@ blacklist ${HOME}/.config/SubDownloader blacklist ${HOME}/.config/Thunar blacklist ${HOME}/.config/VirtualBox blacklist ${HOME}/.config/Wire +blacklist ${HOME}/.config/Zeal blacklist ${HOME}/.config/akonadi* blacklist ${HOME}/.config/akregatorrc blacklist ${HOME}/.config/ardour4 @@ -458,6 +459,7 @@ blacklist ${HOME}/.local/share/SuperHexagon blacklist ${HOME}/.local/share/TelegramDesktop blacklist ${HOME}/.local/share/Terraria blacklist ${HOME}/.local/share/TpLogger +blacklist ${HOME}/.local/share/Zeal blacklist ${HOME}/.local/share/akonadi* blacklist ${HOME}/.local/share/akregator blacklist ${HOME}/.local/share/apps/korganizer @@ -665,6 +667,7 @@ blacklist ${HOME}/.cache/Franz blacklist ${HOME}/.cache/INRIA blacklist ${HOME}/.cache/MusicBrainz blacklist ${HOME}/.cache/QuiteRss +blacklist ${HOME}/.cache/Zeal blacklist ${HOME}/.cache/akonadi* blacklist ${HOME}/.cache/atril blacklist ${HOME}/.cache/attic diff --git a/etc/zeal.profile b/etc/zeal.profile new file mode 100644 index 000000000..f0fa29aa3 --- /dev/null +++ b/etc/zeal.profile @@ -0,0 +1,56 @@ +# Firejail profile for zeal +# Description: Offline documentation browser +# This file is overwritten after every install/update +# Persistent local customizations +include zeal.local +# Persistent global definitions +include globals.local + +noblacklist ${HOME}/.config/Zeal +noblacklist ${HOME}/.cache/Zeal +noblacklist ${HOME}/.local/share/Zeal + +include disable-common.inc +include disable-devel.inc +include disable-exec.inc +include disable-interpreters.inc +include disable-passwdmgr.inc +include disable-programs.inc +include disable-xdg.inc + +mkdir ${HOME}/.config/Zeal +mkdir ${HOME}/.cache/Zeal +mkdir ${HOME}/.local/share/Zeal +whitelist ${HOME}/.config/Zeal +whitelist ${HOME}/.cache/Zeal +whitelist ${HOME}/.local/share/Zeal +include whitelist-common.inc +include whitelist-var-common.inc + +apparmor +caps.drop all +machine-id +netfilter +no3d +nodbus +nodvd +nogroups +nonewprivs +noroot +nosound +notv +nou2f +novideo +protocol unix,inet,inet6 +seccomp +shell none +tracelog + +disable-mnt +private-bin zeal +private-cache +private-dev +private-etc alternatives,ca-certificates,crypto-policies,fonts,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,mime.types,nsswitch.conf,pango,pki,protocols,resolv.conf,rpc,services,ssl,Trolltech.conf,X11,xdg +private-tmp + +memory-deny-write-execute diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 10293cb8f..10a3340bd 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config @@ -659,5 +659,6 @@ youtube-dl zaproxy zart zathura +zeal zoom zpaq -- cgit v1.2.3-70-g09d2