]> gitweb.fluxo.info Git - rhatto/dotfiles/git.git/commitdiff
Feat: firejail profile
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 7 Dec 2020 10:49:38 +0000 (07:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 7 Dec 2020 10:49:38 +0000 (07:49 -0300)
config.dot/firejail/git.profile.link [new file with mode: 0644]

diff --git a/config.dot/firejail/git.profile.link b/config.dot/firejail/git.profile.link
new file mode 100644 (file)
index 0000000..3a5913a
--- /dev/null
@@ -0,0 +1,43 @@
+# git profile
+quiet
+noblacklist ~/.gitconfig
+noblacklist ~/.ssh
+noblacklist ~/.gnupg
+noblacklist ~/.emacs
+noblacklist ~/.emacs.d
+noblacklist ~/.viminfo
+noblacklist ~/.vim
+
+# allow git to work with some other configs
+noblacklist ${HOME}/.config/autostart
+noblacklist ${HOME}/.mutt
+noblacklist ${HOME}/.muttrc
+noblacklist /etc/ssh
+
+# custom
+noblacklist ~/.custom/gitconfig
+noblacklist ${PATH}/nc
+noblacklist /tmp/ssh-*
+noblacklist ~/.subversion
+
+include /etc/firejail/disable-common.inc
+include /etc/firejail/disable-programs.inc
+include /etc/firejail/disable-passwdmgr.inc
+
+# allow write operations in non-default folders
+include whitelist-common.local
+
+# allow git to work with dotfiles
+read-write ${HOME}/.dotfiles
+
+caps.drop all
+netfilter
+nonewprivs
+noroot
+nogroups
+nosound
+protocol unix,inet,inet6
+seccomp
+shell none
+
+private-dev