| 1 |
# Firejail profile for git-cola |
| 2 |
# Description: Linux native frontend for Git |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include git-cola.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
ignore noexec ${HOME} |
| 10 |
|
| 11 |
noblacklist ${HOME}/.gitconfig |
| 12 |
noblacklist ${HOME}/.git-credentials |
| 13 |
noblacklist ${HOME}/.gnupg |
| 14 |
noblacklist ${HOME}/.subversion |
| 15 |
noblacklist ${HOME}/.config/git |
| 16 |
noblacklist ${HOME}/.config/git-cola |
| 17 |
# Add your editor/diff viewer config paths and the next line to your git-cola.local to load settings. |
| 18 |
#noblacklist ${HOME}/ |
| 19 |
|
| 20 |
# Allow python (blacklisted by disable-interpreters.inc) |
| 21 |
include allow-python2.inc |
| 22 |
include allow-python3.inc |
| 23 |
|
| 24 |
# Allow ssh (blacklisted by disable-common.inc) |
| 25 |
include allow-ssh.inc |
| 26 |
|
| 27 |
include disable-common.inc |
| 28 |
include disable-devel.inc |
| 29 |
include disable-exec.inc |
| 30 |
include disable-interpreters.inc |
| 31 |
include disable-programs.inc |
| 32 |
include disable-xdg.inc |
| 33 |
|
| 34 |
whitelist ${RUNUSER}/gnupg |
| 35 |
whitelist ${RUNUSER}/keyring |
| 36 |
# Add additional whitelist paths below /usr/share to your git-cola.local to support your editor/diff viewer. |
| 37 |
whitelist /usr/share/git |
| 38 |
whitelist /usr/share/git-cola |
| 39 |
whitelist /usr/share/git-core |
| 40 |
whitelist /usr/share/git-gui |
| 41 |
whitelist /usr/share/gitk |
| 42 |
whitelist /usr/share/gitweb |
| 43 |
whitelist /usr/share/gnupg |
| 44 |
whitelist /usr/share/gnupg2 |
| 45 |
include whitelist-runuser-common.inc |
| 46 |
include whitelist-usr-share-common.inc |
| 47 |
include whitelist-var-common.inc |
| 48 |
|
| 49 |
writable-run-user |
| 50 |
|
| 51 |
apparmor |
| 52 |
caps.drop all |
| 53 |
machine-id |
| 54 |
netfilter |
| 55 |
no3d |
| 56 |
nodvd |
| 57 |
nogroups |
| 58 |
noinput |
| 59 |
nonewprivs |
| 60 |
noroot |
| 61 |
nosound |
| 62 |
notv |
| 63 |
nou2f |
| 64 |
novideo |
| 65 |
protocol unix,inet,inet6,netlink |
| 66 |
seccomp |
| 67 |
tracelog |
| 68 |
|
| 69 |
# Add your own diff viewer,editor,pinentry program to private-bin in your git-cola.local. |
| 70 |
#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 |
| 71 |
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 |
| 72 |
private-cache |
| 73 |
private-dev |
| 74 |
private-etc @tls-ca,@x11,gitconfig,host.conf,mime.types,ssh |
| 75 |
private-tmp |
| 76 |
|
| 77 |
# dbus-user filtering breaks meld as diff viewer |
| 78 |
# Add the next line to your git-cola.local if you don't use meld. |
| 79 |
#dbus-user filter |
| 80 |
# Add the next line to your git-cola.local if you need keyring access |
| 81 |
#dbus-user.talk org.freedesktop.secrets |
| 82 |
dbus-system none |
| 83 |
|
| 84 |
read-only ${HOME}/.git-credentials |
| 85 |
|
| 86 |
# Add 'ignore read-only ${HOME}/.ssh' to your git-cola.local if you need to allow hosts. |
| 87 |
read-only ${HOME}/.ssh |
| 88 |
|
| 89 |
restrict-namespaces |