aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-01-30 19:20:13 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-01-30 20:05:35 -0300
commitf253f90d1dc2dd0fe8654ce2596303b059f673a9 (patch)
tree54312424941bdcd1a446a2a53a0626f26b4e14b6 /etc
parentdisable-common.inc: add more ro editor/browser paths (diff)
downloadfirejail-f253f90d1dc2dd0fe8654ce2596303b059f673a9.tar.gz
firejail-f253f90d1dc2dd0fe8654ce2596303b059f673a9.tar.zst
firejail-f253f90d1dc2dd0fe8654ce2596303b059f673a9.zip
disable-common.inc: make ~/.config/nano read-only
Similarly to the existing ~/.nanorc entry. Taken from nano.profile.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/disable-common.inc1
-rw-r--r--etc/profile-m-z/nano.profile1
2 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc
index 1e84370a4..03daaa9a6 100644
--- a/etc/inc/disable-common.inc
+++ b/etc/inc/disable-common.inc
@@ -327,6 +327,7 @@ read-only ${HOME}/.ssh/config.d
327# Initialization files that allow arbitrary command execution 327# Initialization files that allow arbitrary command execution
328read-only ${HOME}/.caffrc 328read-only ${HOME}/.caffrc
329read-only ${HOME}/.cargo/env 329read-only ${HOME}/.cargo/env
330read-only ${HOME}/.config/nano
330read-only ${HOME}/.config/nvim 331read-only ${HOME}/.config/nvim
331read-only ${HOME}/.config/pkcs11 332read-only ${HOME}/.config/pkcs11
332read-only ${HOME}/.dotfiles 333read-only ${HOME}/.dotfiles
diff --git a/etc/profile-m-z/nano.profile b/etc/profile-m-z/nano.profile
index 0814742c1..74403c335 100644
--- a/etc/profile-m-z/nano.profile
+++ b/etc/profile-m-z/nano.profile
@@ -56,5 +56,6 @@ dbus-user none
56dbus-system none 56dbus-system none
57 57
58memory-deny-write-execute 58memory-deny-write-execute
59read-write ${HOME}/.config/nano
59read-write ${HOME}/.nanorc 60read-write ${HOME}/.nanorc
60restrict-namespaces 61restrict-namespaces