Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add fireurl #5574

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions etc/inc/whitelist-runuser-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include whitelist-runuser-common.local

whitelist ${RUNUSER}/bus
whitelist ${RUNUSER}/dconf
whitelist ${RUNUSER}/fireurl
whitelist ${RUNUSER}/gdm/Xauthority
whitelist ${RUNUSER}/ICEauthority
whitelist ${RUNUSER}/.mutter-Xwaylandauth.*
Expand Down
2 changes: 1 addition & 1 deletion etc/profile-a-l/balsa.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ whitelist ${HOME}/mail
whitelist /usr/share/balsa

# Add "pinentry-curses,pinentry-emacs,pinentry-fltk,pinentry-gnome3,pinentry-gtk,pinentry-gtk2,pinentry-gtk-2,pinentry-qt,pinentry-qt4,pinentry-tty,pinentry-x2go,pinentry-kwallet" for gpg.
#private-bin balsa,balsa-ab,gpg,gpg-agent,gpg2,gpgsm
#private-bin balsa,balsa-ab,fireurl,gpg,gpg-agent,gpg2,gpgsm

dbus-user.own org.desktop.Balsa

Expand Down
11 changes: 0 additions & 11 deletions etc/profile-a-l/electron-mail.profile
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,12 @@ ignore disable-mnt

noblacklist ${HOME}/.config/electron-mail

# sh is needed to allow Firefox to open links
include allow-bin-sh.inc

include disable-shell.inc

mkdir ${HOME}/.config/electron-mail
whitelist ${HOME}/.config/electron-mail
whitelist /opt/ElectronMail

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

machine-id
nosound

Expand All @@ -35,8 +26,6 @@ dbus-user filter
dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.secrets
dbus-user.talk org.gnome.keyring.SystemPrompter
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*

# Redirect
include electron-common.profile
5 changes: 1 addition & 4 deletions etc/profile-a-l/email-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ include email-common.local
noblacklist ${HOME}/.bogofilter
noblacklist ${HOME}/.bsfilter
noblacklist ${HOME}/.gnupg
noblacklist ${HOME}/.mozilla
noblacklist ${HOME}/.signature
# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local
# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications
Expand Down Expand Up @@ -38,7 +37,6 @@ whitelist ${HOME}/.bogofilter
whitelist ${HOME}/.bsfilter
whitelist ${HOME}/.config/mimeapps.list
whitelist ${HOME}/.gnupg
whitelist ${HOME}/.mozilla/firefox/profiles.ini
whitelist ${HOME}/.signature
whitelist ${DOCUMENTS}
whitelist ${DOWNLOADS}
Expand All @@ -48,7 +46,7 @@ whitelist ${RUNUSER}/gnupg
whitelist /usr/share/bogofilter
whitelist /usr/share/gnupg
whitelist /usr/share/gnupg2
whitelist /var/lib/clamav
whitelist /var/lib/clamav
whitelist /var/mail
whitelist /var/spool/mail
include whitelist-common.inc
Expand Down Expand Up @@ -90,7 +88,6 @@ dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.secrets
dbus-user.talk org.gnome.keyring.*
dbus-user.talk org.gnome.seahorse.*
dbus-user.talk org.mozilla.*
dbus-system none

read-only ${HOME}/.signature
Expand Down
11 changes: 1 addition & 10 deletions etc/profile-a-l/fluffychat.profile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
read-only ${HOME}/.mozilla/firefox/profiles.ini

mkdir ${HOME}/.local/share/fluffychat
whitelist ${DOWNLOADS}
whitelist ${HOME}/.local/share/fluffychat
Expand Down Expand Up @@ -57,16 +50,14 @@ seccomp.block-secondary
tracelog

disable-mnt
private-bin firefox,fluffychat,sh,which,zenity
private-bin fireurl,fluffychat,sh,which,zenity
private-cache
private-dev
private-etc X11,alsa,alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,gconf,gtk-3.0,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nsswitch.conf,pango,pki,protocols,pulse,resolv.conf,rpc,services,ssl,xdg
private-tmp

dbus-user filter
dbus-user.talk org.freedesktop.secrets
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*
dbus-system filter
dbus-system.talk org.freedesktop.NetworkManager

Expand Down
5 changes: 1 addition & 4 deletions etc/profile-a-l/geary.profile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ noblacklist ${HOME}/.config/geary
noblacklist ${HOME}/.local/share/evolution
noblacklist ${HOME}/.local/share/geary
noblacklist ${HOME}/.local/share/pki
noblacklist ${HOME}/.mozilla
noblacklist ${HOME}/.pki

include allow-bin-sh.inc
Expand Down Expand Up @@ -43,7 +42,6 @@ whitelist ${HOME}/.config/geary
whitelist ${HOME}/.local/share/evolution
whitelist ${HOME}/.local/share/geary
whitelist ${HOME}/.local/share/pki
whitelist ${HOME}/.mozilla/firefox/profiles.ini
whitelist ${HOME}/.pki
whitelist /usr/share/geary
include whitelist-common.inc
Expand Down Expand Up @@ -72,7 +70,7 @@ seccomp.block-secondary
tracelog

#disable-mnt
#private-bin geary,sh
#private-bin fireurl,geary,sh
private-cache
private-dev
private-etc @tls-ca,@x11,mailcap,mime.types
Expand All @@ -88,7 +86,6 @@ dbus-user.talk org.gnome.OnlineAccounts
dbus-user.talk org.gnome.evolution.dataserver.AddressBook10
dbus-user.talk org.gnome.evolution.dataserver.Sources5
?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
dbus-user.talk org.mozilla.*
dbus-system none

restrict-namespaces
10 changes: 1 addition & 9 deletions etc/profile-a-l/gtk-youtube-viewers-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ include gtk-youtube-viewers-common.local

ignore quiet

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

private-bin firefox,xterm
private-bin fireurl,xterm

dbus-user filter
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*
12 changes: 2 additions & 10 deletions etc/profile-a-l/kube.profile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

mkdir ${HOME}/.cache/kube
mkdir ${HOME}/.config/kube
mkdir ${HOME}/.config/sink
Expand Down Expand Up @@ -66,8 +60,8 @@ seccomp
tracelog

#disable-mnt
# Add "gpg,gpg2,gpg-agent,pinentry-curses,pinentry-emacs,pinentry-fltk,pinentry-gnome3,pinentry-gtk,pinentry-gtk2,pinentry-gtk-2,pinentry-qt,pinentry-qt4,pinentry-tty,pinentry-x2go,pinentry-kwallet" for gpg
private-bin kube,sink_synchronizer
# Add "gpg,gpg2,gpg-agent,pinentry-curses,pinentry-emacs,pinentry-fltk,pinentry-gnome3,pinentry-gtk,pinentry-gtk2,pinentry-gtk-2,pinentry-qt,pinentry-qt4,pinentry-tty,pinentry-x2go,pinentry-kwallet" for gpg.
private-bin fireurl,kube,sink_synchronizer
private-cache
private-dev
private-etc @tls-ca,@x11
Expand All @@ -78,8 +72,6 @@ dbus-user filter
dbus-user.talk ca.desrt.dconf
dbus-user.talk org.freedesktop.secrets
dbus-user.talk org.freedesktop.Notifications
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*
dbus-system none

restrict-namespaces
10 changes: 1 addition & 9 deletions etc/profile-a-l/lettura.profile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

apparmor
caps.drop all
netfilter
Expand All @@ -60,7 +54,7 @@ seccomp.block-secondary
tracelog

disable-mnt
private-bin lettura
private-bin fireurl,lettura
private-cache
private-dev
private-etc @network,@sound,@tls-ca,@x11,mime.types
Expand All @@ -69,8 +63,6 @@ private-tmp
dbus-user filter
dbus-user.talk org.freedesktop.Notifications
?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*
dbus-system none

restrict-namespaces
2 changes: 0 additions & 2 deletions etc/profile-a-l/linuxqq.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ include disable-shell.inc

mkdir ${HOME}/.config/QQ
whitelist ${HOME}/.config/QQ
whitelist ${HOME}/.mozilla/firefox/profiles.ini
whitelist ${DESKTOP}
whitelist /opt/QQ

Expand All @@ -34,7 +33,6 @@ dbus-user.talk org.freedesktop.portal.IBus
dbus-user.talk org.freedesktop.ScreenSaver
dbus-user.talk org.gnome.Mutter.IdleMonitor
?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
dbus-user.talk org.mozilla.*
ignore dbus-user none

# Redirect
Expand Down
10 changes: 0 additions & 10 deletions etc/profile-m-z/signal-desktop.profile
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,13 @@ ignore noexec /tmp

noblacklist ${HOME}/.config/Signal

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

mkdir ${HOME}/.config/Signal
whitelist ${HOME}/.config/Signal

private-etc @tls-ca

dbus-user filter
# allow D-Bus notifications
dbus-user.talk org.freedesktop.Notifications
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*

ignore dbus-user none

# Redirect
Expand Down
8 changes: 0 additions & 8 deletions etc/profile-m-z/thunderbird.profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ include thunderbird.local
# Persistent global definitions
include globals.local

ignore include whitelist-runuser-common.inc

# TB stopped supporting enigmail in 2020 (v78) - let's harden D-Bus
# https://support.mozilla.org/en-US/kb/openpgp-thunderbird-howto-and-faq
ignore dbus-user none
dbus-user filter
dbus-user.own org.mozilla.thunderbird.*
dbus-user.talk ca.desrt.dconf
dbus-user.talk org.freedesktop.Notifications
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*
# e2ee email needs writable-run-user
# https://support.mozilla.org/en-US/kb/introduction-to-e2e-encryption
writable-run-user
Expand All @@ -29,10 +25,6 @@ writable-run-user
#whitelist /var/spool/mail
#writable-var

# These lines are needed to allow Firefox to load your profile when clicking a link in an email
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

noblacklist ${HOME}/.cache/thunderbird
noblacklist ${HOME}/.gnupg
#noblacklist ${HOME}/.icedove
Expand Down
10 changes: 1 addition & 9 deletions etc/profile-m-z/trojita.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

mkdir ${HOME}/.abook
mkdir ${HOME}/.cache/flaska.net/trojita
mkdir ${HOME}/.config/flaska.net
Expand Down Expand Up @@ -53,16 +47,14 @@ seccomp
tracelog

#disable-mnt
private-bin trojita
private-bin fireurl,trojita
private-cache
private-dev
private-etc @tls-ca,@x11
private-tmp

dbus-user filter
dbus-user.talk org.freedesktop.secrets
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*
dbus-system none

restrict-namespaces
11 changes: 0 additions & 11 deletions etc/profile-m-z/tutanota-desktop.profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ ignore dbus-user none
ignore disable-mnt
ignore noexec /tmp

# sh is needed to allow Firefox to open links
include allow-bin-sh.inc

include disable-shell.inc

mkdir ${HOME}/.config/tuta_integration
Expand All @@ -24,12 +21,6 @@ whitelist ${HOME}/.config/tuta_integration
whitelist ${HOME}/.config/tutanota-desktop
whitelist /opt/tutanota-desktop

# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini

machine-id
nosound

Expand All @@ -40,8 +31,6 @@ dbus-user filter
dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.secrets
dbus-user.talk org.gnome.keyring.SystemPrompter
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*

# Redirect
include electron-common.profile
3 changes: 2 additions & 1 deletion etc/profile-m-z/youtube-viewers-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ seccomp
tracelog

disable-mnt
private-bin bash,ffmpeg,ffprobe,mpv,perl,python*,sh,smplayer,stty,wget,wget2,which,youtube-dl,yt-dlp
private-bin bash,ffmpeg,ffprobe,fireurl,mpv,perl,python*,sh,smplayer,stty,wget,wget2,which,youtube-dl,yt-dlp
private-cache
private-dev
private-etc @tls-ca,@x11,host.conf,mime.types
private-tmp

dbus-user none
dbus-system none

restrict-namespaces
Loading