From e364be1ffd7c5a5f5fb82df58878f58c00afd6da Mon Sep 17 00:00:00 2001 From: Sergey Besedin Date: Wed, 27 Apr 2022 12:54:05 +0400 Subject: [PATCH] Add firejail --- config/firejail/neomutt.profile | 14 ++++++++++++++ config/firejail/whitelist-dotfiles-private.inc | 1 + config/firejail/whitelist-dotfiles.inc | 1 + config/htop/htoprc | 2 +- config/mutt/muttrc | 2 +- 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 config/firejail/neomutt.profile create mode 100644 config/firejail/whitelist-dotfiles-private.inc create mode 100644 config/firejail/whitelist-dotfiles.inc diff --git a/config/firejail/neomutt.profile b/config/firejail/neomutt.profile new file mode 100644 index 0000000..92ddced --- /dev/null +++ b/config/firejail/neomutt.profile @@ -0,0 +1,14 @@ +ignore private-etc + +noblacklist ${HOME}/bin/preview-html +noblacklist ${HOME}/.mbsyncrc +noblacklist ${HOME}/.password-store + +include /etc/firejail/neomutt.profile + +include whitelist-dotfiles.inc +include whitelist-dotfiles-private.inc + +whitelist ${HOME}/bin/preview-html +whitelist ${HOME}/.mbsyncrc +whitelist ${HOME}/.password-store diff --git a/config/firejail/whitelist-dotfiles-private.inc b/config/firejail/whitelist-dotfiles-private.inc new file mode 100644 index 0000000..1ebfe7d --- /dev/null +++ b/config/firejail/whitelist-dotfiles-private.inc @@ -0,0 +1 @@ +whitelist ${HOME}/.dotfiles-private diff --git a/config/firejail/whitelist-dotfiles.inc b/config/firejail/whitelist-dotfiles.inc new file mode 100644 index 0000000..0413ae6 --- /dev/null +++ b/config/firejail/whitelist-dotfiles.inc @@ -0,0 +1 @@ +whitelist ${HOME}/.dotfiles diff --git a/config/htop/htoprc b/config/htop/htoprc index 5214022..a75b2ff 100644 --- a/config/htop/htoprc +++ b/config/htop/htoprc @@ -6,7 +6,7 @@ fields=0 48 17 18 38 39 40 2 46 47 49 1 sort_key=46 sort_direction=-1 tree_sort_key=46 -tree_sort_direction=1 +tree_sort_direction=-1 hide_kernel_threads=0 hide_userland_threads=0 shadow_other_users=1 diff --git a/config/mutt/muttrc b/config/mutt/muttrc index ff821f0..56924ac 100644 --- a/config/mutt/muttrc +++ b/config/mutt/muttrc @@ -166,7 +166,7 @@ bind index,pager \CO sidebar-open bind index,pager \Ck sidebar-prev bind index,pager \Cj sidebar-next -macro attach 'V' "cat > $HOME/.cache/mutt/mail.html; ~/bin/preview-html file://$HOME/.cache/mutt/mail.html; rm $HOME/.cache/mutt/mail.html" +macro attach 'V' "cat > /tmp/mutt-preview.html && $HOME/bin/preview-html file:///tmp/mutt-preview.html; rm /tmp/mutt-preview.html" macro index 'c' '?^K=' set mailcap_path = ~/.config/mutt/mailcap