Skip to content

Commit 49d21b0

Browse files
committed
profiles: browsers: format and improve comments
1 parent 21a5775 commit 49d21b0

6 files changed

+33
-25
lines changed

etc/profile-a-l/cachy-browser.profile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Firejail profile for Cachy-Browser
2-
# Description: Librewolf fork based on enhanced privacy with gentoo patchset
1+
# Firejail profile for cachy-browser
2+
# Description: Librewolf fork based on enhanced privacy with Gentoo patchset
33
# This file is overwritten after every install/update
44
# Persistent local customizations
55
include cachy-browser.local
@@ -15,7 +15,7 @@ whitelist ${HOME}/.cache/cachy
1515
whitelist ${HOME}/.cachy
1616
whitelist /usr/share/cachy-browser
1717

18-
# Add the next line to your cachy-browser.local to enable private-bin (Arch Linux).
18+
# Add the next line to cachy-browser.local to enable private-bin.
1919
#private-bin dbus-launch,dbus-send,cachy-browser,sh
2020
private-etc cachy-browser
2121

etc/profile-a-l/chromium-common.profile

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ noblacklist ${HOME}/.local/share/pki
2020
noblacklist ${HOME}/.pki
2121
noblacklist /usr/lib/chromium/chrome-sandbox
2222

23-
# Add the next line to your chromium-common.local if you want Google Chrome/Chromium browser
24-
# to have access to Gnome extensions (extensions.gnome.org) via browser connector
23+
# Add the next line to chromium-common.local if you want the web browser to
24+
# have access to Gnome extensions (extensions.gnome.org) via the browser
25+
# connector.
2526
#include allow-python3.inc
2627

2728
blacklist ${PATH}/curl
@@ -38,16 +39,16 @@ include whitelist-run-common.inc
3839

3940
# If your kernel allows the creation of user namespaces by unprivileged users
4041
# (for example, if running `unshare -U echo enabled` prints "enabled"), you
41-
# can add the next line to your chromium-common.local.
42+
# can add the next line to chromium-common.local.
4243
#include chromium-common-hardened.inc.profile
4344

4445
?BROWSER_DISABLE_U2F: nou2f
4546

4647
?BROWSER_DISABLE_U2F: private-dev
4748
#private-tmp # issues when using multiple browser sessions
4849

49-
# This prevents access to passwords saved in GNOME Keyring and KWallet, also
50-
# breaks Gnome connector.
50+
# Note: This prevents access to passwords saved in GNOME Keyring and KWallet
51+
# and breaks Gnome connector.
5152
#dbus-user none
5253

5354
# The file dialog needs to work without d-bus.

etc/profile-a-l/firefox-common-addons.profile

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ whitelist ${HOME}/dwhelper
7979
whitelist /usr/share/lua*
8080
whitelist /usr/share/mpv
8181

82-
# GNOME Shell integration (chrome-gnome-shell) needs dbus and python
82+
# GNOME Shell integration (chrome-gnome-shell) needs dbus and python.
8383
noblacklist ${HOME}/.local/share/gnome-shell
8484
whitelist ${HOME}/.local/share/gnome-shell
8585
dbus-user.talk ca.desrt.dconf

etc/profile-a-l/firefox-common.profile

+15-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ include firefox-common.local
2323
#whitelist ${RUNUSER}/kpxc_server
2424
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer
2525

26-
# Add the next line to your firefox-common.local to allow access to common programs/addons/plugins.
26+
# Add the next line to firefox-common.local to allow access to common
27+
# programs/addons/plugins.
2728
#include firefox-common-addons.profile
2829

2930
noblacklist ${HOME}/.local/share/pki
@@ -59,31 +60,37 @@ apparmor
5960
# Fixme!
6061
apparmor-replace
6162
caps.drop all
62-
# machine-id breaks pulse audio; add it to your firefox-common.local if sound is not required.
63+
# Note: machine-id breaks pulseaudio; add it to firefox-common.local if sound
64+
# is not required.
6365
#machine-id
6466
netfilter
6567
nodvd
6668
nogroups
6769
noinput
6870
nonewprivs
69-
# noroot breaks GTK_USE_PORTAL=1 usage, see https://github.com/netblue30/firejail/issues/2506.
71+
# Note: noroot breaks GTK_USE_PORTAL=1 usage; see
72+
# https://github.com/netblue30/firejail/issues/2506.
7073
noroot
7174
notv
7275
?BROWSER_DISABLE_U2F: nou2f
7376
protocol unix,inet,inet6,netlink
74-
# The below seccomp configuration still permits chroot syscall. See https://github.com/netblue30/firejail/issues/2506 for possible workarounds.
77+
# Note: The seccomp line below still permits the chroot syscall; see
78+
# https://github.com/netblue30/firejail/issues/2506 for possible workarounds.
7579
seccomp !chroot
76-
# Disable tracelog, it breaks or causes major issues with many firefox based browsers, see https://github.com/netblue30/firejail/issues/1930.
80+
# Note: tracelog may break or cause major issues with many Firefox-based
81+
# browsers; see https://github.com/netblue30/firejail/issues/1930.
7782
#tracelog
7883

7984
disable-mnt
8085
?BROWSER_DISABLE_U2F: private-dev
81-
# private-etc below works fine on most distributions. There could be some problems on CentOS.
86+
# Note: The private-etc line below works fine on most distributions but it
87+
# could cause problems on CentOS.
8288
private-etc @tls-ca,@x11,mailcap,mime.types,os-release
8389
private-tmp
8490

85-
# 'dbus-user none' breaks various desktop integration features like global menus, native notifications,
86-
# Gnome connector, KDE connect and power management on KDE Plasma.
91+
# Note: `dbus-user none` breaks various desktop integration features like
92+
# global menus, native notifications, Gnome connector, KDE Connect and power
93+
# management on KDE Plasma.
8794
dbus-user none
8895
dbus-system none
8996

etc/profile-a-l/firefox.profile

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ include firefox.local
66
# Persistent global definitions
77
include globals.local
88

9-
# Note: Sandboxing web browsers is as important as it is complex. Users might be
10-
# interested in creating custom profiles depending on use case (e.g. one for
11-
# general browsing, another for banking, ...). Consult our FAQ/issue tracker for more
12-
# info. Here are a few links to get you going.
9+
# Note: Sandboxing web browsers is as important as it is complex. Users might
10+
# be interested in creating custom profiles depending on the use case (e.g. one
11+
# for general browsing, another for banking, ...). Consult our FAQ/issue
12+
# tracker for more information. Here are a few links to get you going:
1313
# https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#firefox-doesnt-open-in-a-new-sandbox-instead-it-opens-a-new-tab-in-an-existing-firefox-instance
1414
# https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#how-do-i-run-two-instances-of-firefox
1515
# https://github.com/netblue30/firejail/issues/4206#issuecomment-824806968
@@ -34,9 +34,9 @@ whitelist /usr/share/gnome-shell/search-providers/firefox-search-provider.ini
3434
whitelist ${RUNUSER}/*firefox*
3535
whitelist ${RUNUSER}/psd/*firefox*
3636

37-
# firefox requires a shell to launch on Arch - add the next line to your firefox.local to enable private-bin.
37+
# Note: Firefox requires a shell to launch on Arch and Fedora.
38+
# Add the next lines to firefox.local to enable private-bin.
3839
#private-bin bash,dbus-launch,dbus-send,env,firefox,sh,which
39-
# Fedora uses shell scripts to launch firefox - add the next line to your firefox.local to enable private-bin.
4040
#private-bin basename,bash,cat,dirname,expr,false,firefox,firefox-wayland,getenforce,ln,mkdir,pidof,restorecon,rm,rmdir,sed,sh,tclsh,true,uname
4141
private-etc firefox
4242

etc/profile-a-l/librewolf.profile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Firejail profile for Librewolf
1+
# Firejail profile for librewolf
22
# Description: Firefox fork based on privacy
33
# This file is overwritten after every install/update
44
# Persistent local customizations
@@ -16,7 +16,7 @@ whitelist ${HOME}/.librewolf
1616

1717
whitelist /usr/share/librewolf
1818

19-
# Add the next line to your librewolf.local to enable private-bin (Arch Linux).
19+
# Add the next line to librewolf.local to enable private-bin.
2020
#private-bin dbus-launch,dbus-send,librewolf,sh
2121
private-etc librewolf
2222

0 commit comments

Comments
 (0)