mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-22 06:05:38 -06:00
Main changes:
* Remove the space after `#` for commented code lines to distinguish
them from normal comments
* Use `#` instead of `-` for comments at the end of the line so that
commented code lines work after being uncommented
Commands used to search and replace:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git ls-files -z -- etc/inc etc/profile* | xargs -0 -I '{}' \
sh -c "printf '%s\n' \"\$(sed -E \
-e 's/^# ($arg0)( [#-]-? .*)?\$/#\\1\\2/' \
-e 's/^# ($arg1)( [^ ]*)?( [#-]-? .*)?\$/#\\1\\2\\3/' \
-e 's/^# (whitelist \\$)/#\\1/' \
-e 's/^(#[^ ].+) --? /\\1 # /' \
'{}')\" >'{}'"
Commands used to check for leftover entries:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git grep -E "^# ($arg0|$arg1)( +|$)" -- etc/inc etc/profile*
See also commit 30f9ad908 ("build: improve comments in firecfg.config",
2023-08-05) / PR #5942.
66 lines
1.6 KiB
Text
66 lines
1.6 KiB
Text
# Firejail profile for midori
|
|
# Description: Lightweight web browser
|
|
# This file is overwritten after every install/update
|
|
# Persistent local customizations
|
|
include midori.local
|
|
# Persistent global definitions
|
|
include globals.local
|
|
|
|
# noexec ${HOME} breaks DRM binaries.
|
|
?BROWSER_ALLOW_DRM: ignore noexec ${HOME}
|
|
|
|
noblacklist ${HOME}/.cache/midori
|
|
noblacklist ${HOME}/.config/midori
|
|
noblacklist ${HOME}/.local/share/midori
|
|
noblacklist ${HOME}/.local/share/pki
|
|
#noblacklist ${HOME}/.local/share/webkit
|
|
#noblacklist ${HOME}/.local/share/webkitgtk
|
|
noblacklist ${HOME}/.pki
|
|
|
|
noblacklist ${HOME}/.cache/gnome-mplayer
|
|
noblacklist ${HOME}/.config/gnome-mplayer
|
|
noblacklist ${HOME}/.lastpass
|
|
|
|
include disable-common.inc
|
|
include disable-devel.inc
|
|
include disable-exec.inc
|
|
include disable-interpreters.inc
|
|
include disable-programs.inc
|
|
include disable-xdg.inc
|
|
|
|
mkdir ${HOME}/.cache/midori
|
|
mkdir ${HOME}/.config/midori
|
|
mkdir ${HOME}/.local/share/midori
|
|
mkdir ${HOME}/.local/share/pki
|
|
mkdir ${HOME}/.local/share/webkit
|
|
mkdir ${HOME}/.local/share/webkitgtk
|
|
mkdir ${HOME}/.pki
|
|
whitelist ${DOWNLOADS}
|
|
whitelist ${HOME}/.cache/gnome-mplayer/plugin
|
|
whitelist ${HOME}/.cache/midori
|
|
whitelist ${HOME}/.config/gnome-mplayer
|
|
whitelist ${HOME}/.config/midori
|
|
whitelist ${HOME}/.lastpass
|
|
whitelist ${HOME}/.local/share/midori
|
|
whitelist ${HOME}/.local/share/pki
|
|
whitelist ${HOME}/.local/share/webkit
|
|
whitelist ${HOME}/.local/share/webkitgtk
|
|
whitelist ${HOME}/.pki
|
|
include whitelist-common.inc
|
|
include whitelist-var-common.inc
|
|
|
|
apparmor
|
|
caps.drop all
|
|
netfilter
|
|
nodvd
|
|
nonewprivs
|
|
#noroot # problems on Ubuntu 14.04
|
|
notv
|
|
protocol unix,inet,inet6,netlink
|
|
seccomp
|
|
tracelog
|
|
|
|
disable-mnt
|
|
private-tmp
|
|
|
|
restrict-namespaces
|