mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
88 lines
2.5 KiB
Text
88 lines
2.5 KiB
Text
# Firejail profile for git-cola
|
|
# Description: Linux native frontend for Git
|
|
# This file is overwritten after every install/update
|
|
# Persistent local customizations
|
|
include git-cola.local
|
|
# Persistent global definitions
|
|
include globals.local
|
|
|
|
ignore noexec ${HOME}
|
|
|
|
noblacklist ${HOME}/.gitconfig
|
|
noblacklist ${HOME}/.git-credentials
|
|
noblacklist ${HOME}/.gnupg
|
|
noblacklist ${HOME}/.subversion
|
|
noblacklist ${HOME}/.config/git
|
|
noblacklist ${HOME}/.config/git-cola
|
|
# Add your editor/diff viewer config paths and the next line to your git-cola.local to load settings.
|
|
#noblacklist ${HOME}/
|
|
|
|
# Allow python (blacklisted by disable-interpreters.inc)
|
|
include allow-python2.inc
|
|
include allow-python3.inc
|
|
|
|
# Allow ssh (blacklisted by disable-common.inc)
|
|
include allow-ssh.inc
|
|
|
|
include disable-common.inc
|
|
include disable-devel.inc
|
|
include disable-exec.inc
|
|
include disable-interpreters.inc
|
|
include disable-programs.inc
|
|
include disable-xdg.inc
|
|
|
|
whitelist ${RUNUSER}/gnupg
|
|
whitelist ${RUNUSER}/keyring
|
|
# Add additional whitelist paths below /usr/share to your git-cola.local to support your editor/diff viewer.
|
|
whitelist /usr/share/git
|
|
whitelist /usr/share/git-cola
|
|
whitelist /usr/share/git-core
|
|
whitelist /usr/share/git-gui
|
|
whitelist /usr/share/gitk
|
|
whitelist /usr/share/gitweb
|
|
whitelist /usr/share/gnupg
|
|
whitelist /usr/share/gnupg2
|
|
include whitelist-runuser-common.inc
|
|
include whitelist-usr-share-common.inc
|
|
include whitelist-var-common.inc
|
|
|
|
apparmor
|
|
caps.drop all
|
|
machine-id
|
|
netfilter
|
|
no3d
|
|
nodvd
|
|
nogroups
|
|
noinput
|
|
nonewprivs
|
|
noroot
|
|
nosound
|
|
notv
|
|
nou2f
|
|
novideo
|
|
protocol unix,inet,inet6,netlink
|
|
seccomp
|
|
tracelog
|
|
|
|
# Add your own diff viewer,editor,pinentry program to private-bin in your git-cola.local.
|
|
#private-bin 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 basename,bash,cola,envsubst,gettext,git,git-cola,git-dag,git-gui,gitk,gpg,gpg-agent,nano,ps,python*,sh,ssh,ssh-agent,tclsh,tr,wc,which,xed
|
|
private-cache
|
|
private-dev
|
|
private-etc @tls-ca,@x11,gitconfig,host.conf,mime.types,ssh
|
|
private-tmp
|
|
writable-run-user
|
|
|
|
# dbus-user filtering breaks meld as diff viewer
|
|
# Add the next line to your git-cola.local if you don't use meld.
|
|
#dbus-user filter
|
|
# Add the next line to your git-cola.local if you need keyring access
|
|
#dbus-user.talk org.freedesktop.secrets
|
|
dbus-system none
|
|
|
|
read-only ${HOME}/.git-credentials
|
|
|
|
# Add 'ignore read-only ${HOME}/.ssh' to your git-cola.local if you need to allow hosts.
|
|
read-only ${HOME}/.ssh
|
|
|
|
restrict-namespaces
|