aboutsummaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2021-01-11 17:32:31 +0000
committerLibravatar GitHub <noreply@github.com>2021-01-11 17:32:31 +0000
commit37452ef1a71473b87431c3c708d3b31ca1b7a25f (patch)
treecbd95f66f264c2c049052f4434757db9ebf99c1e /etc/inc
parentfix ordering in ssh.profile (#3882) (diff)
downloadfirejail-37452ef1a71473b87431c3c708d3b31ca1b7a25f.tar.gz
firejail-37452ef1a71473b87431c3c708d3b31ca1b7a25f.tar.zst
firejail-37452ef1a71473b87431c3c708d3b31ca1b7a25f.zip
refactor nodejs applications (npm & yarn) (#3876)
* add yarn & reorder * add node-gyp & yarn files * Create nodejs-common.profile * Create yarn.profile * refactor npm.profile * add new profile: yarn * read-only's for npm/yarn Thanks to the [suggestion](https://github.com/netblue30/firejail/pull/3876#pullrequestreview-564682989) from @kmk3. * ignore read-only's for npm As [suggested](https://github.com/netblue30/firejail/pull/3876#pullrequestreview-564682989) by @kmk3. * ignore read-only for yarn As suggested in https://github.com/netblue30/firejail/pull/3876#pullrequestreview-564682989 by @kmk3. * remove quiet from nodejs-common.profile quiet should go into the caller profiles instead * add quiet to npm.profile Thanks @rusty-snake for the review. * re-ordering some options * re-ordering
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/allow-common-devel.inc13
-rw-r--r--etc/inc/disable-common.inc2
-rw-r--r--etc/inc/disable-programs.inc5
3 files changed, 16 insertions, 4 deletions
diff --git a/etc/inc/allow-common-devel.inc b/etc/inc/allow-common-devel.inc
index 68e91a09b..41643657d 100644
--- a/etc/inc/allow-common-devel.inc
+++ b/etc/inc/allow-common-devel.inc
@@ -11,6 +11,15 @@ noblacklist ${HOME}/.git-credentials
11noblacklist ${HOME}/.gradle 11noblacklist ${HOME}/.gradle
12noblacklist ${HOME}/.java 12noblacklist ${HOME}/.java
13 13
14# Node.js
15noblacklist ${HOME}/.node-gyp
16noblacklist ${HOME}/.npm
17noblacklist ${HOME}/.npmrc
18noblacklist ${HOME}/.yarn
19noblacklist ${HOME}/.yarn-config
20noblacklist ${HOME}/.yarncache
21noblacklist ${HOME}/.yarnrc
22
14# Python 23# Python
15noblacklist ${HOME}/.pylint.d 24noblacklist ${HOME}/.pylint.d
16noblacklist ${HOME}/.python-history 25noblacklist ${HOME}/.python-history
@@ -25,7 +34,3 @@ noblacklist ${HOME}/.cargo/registry
25noblacklist ${HOME}/.cargo/.crates.toml 34noblacklist ${HOME}/.cargo/.crates.toml
26noblacklist ${HOME}/.cargo/.crates2.json 35noblacklist ${HOME}/.cargo/.crates2.json
27noblacklist ${HOME}/.cargo/.package-cache 36noblacklist ${HOME}/.cargo/.package-cache
28
29# npm
30noblacklist ${HOME}/.npm
31noblacklist ${HOME}/.npmrc
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc
index d88506d90..0de539d57 100644
--- a/etc/inc/disable-common.inc
+++ b/etc/inc/disable-common.inc
@@ -310,6 +310,7 @@ read-only ${HOME}/.msmtprc
310read-only ${HOME}/.mutt/muttrc 310read-only ${HOME}/.mutt/muttrc
311read-only ${HOME}/.muttrc 311read-only ${HOME}/.muttrc
312read-only ${HOME}/.nano 312read-only ${HOME}/.nano
313read-only ${HOME}/.npmrc
313read-only ${HOME}/.pythonrc.py 314read-only ${HOME}/.pythonrc.py
314read-only ${HOME}/.reportbugrc 315read-only ${HOME}/.reportbugrc
315read-only ${HOME}/.tmux.conf 316read-only ${HOME}/.tmux.conf
@@ -318,6 +319,7 @@ read-only ${HOME}/.viminfo
318read-only ${HOME}/.vimrc 319read-only ${HOME}/.vimrc
319read-only ${HOME}/.xmonad 320read-only ${HOME}/.xmonad
320read-only ${HOME}/.xscreensaver 321read-only ${HOME}/.xscreensaver
322read-only ${HOME}/.yarnrc
321read-only ${HOME}/_exrc 323read-only ${HOME}/_exrc
322read-only ${HOME}/_gvimrc 324read-only ${HOME}/_gvimrc
323read-only ${HOME}/_vimrc 325read-only ${HOME}/_vimrc
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index f5bce4ba4..74cbfbcbe 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -761,6 +761,7 @@ blacklist ${HOME}/.neverball
761blacklist ${HOME}/.newsbeuter 761blacklist ${HOME}/.newsbeuter
762blacklist ${HOME}/.newsboat 762blacklist ${HOME}/.newsboat
763blacklist ${HOME}/.nicotine 763blacklist ${HOME}/.nicotine
764blacklist ${HOME}/.node-gyp
764blacklist ${HOME}/.npm 765blacklist ${HOME}/.npm
765blacklist ${HOME}/.npmrc 766blacklist ${HOME}/.npmrc
766blacklist ${HOME}/.nv 767blacklist ${HOME}/.nv
@@ -849,6 +850,10 @@ blacklist ${HOME}/.xmr-stak
849blacklist ${HOME}/.xonotic 850blacklist ${HOME}/.xonotic
850blacklist ${HOME}/.xournalpp 851blacklist ${HOME}/.xournalpp
851blacklist ${HOME}/.xpdfrc 852blacklist ${HOME}/.xpdfrc
853blacklist ${HOME}/.yarn
854blacklist ${HOME}/.yarn-config
855blacklist ${HOME}/.yarncache
856blacklist ${HOME}/.yarnrc
852blacklist ${HOME}/.zoom 857blacklist ${HOME}/.zoom
853blacklist /tmp/akonadi-* 858blacklist /tmp/akonadi-*
854blacklist /tmp/ssh-* 859blacklist /tmp/ssh-*