diff options
author | glitsj16 <glitsj16@users.noreply.github.com> | 2021-01-11 17:32:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 17:32:31 +0000 |
commit | 37452ef1a71473b87431c3c708d3b31ca1b7a25f (patch) | |
tree | cbd95f66f264c2c049052f4434757db9ebf99c1e /etc/profile-m-z/yarn.profile | |
parent | fix ordering in ssh.profile (#3882) (diff) | |
download | firejail-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/profile-m-z/yarn.profile')
-rw-r--r-- | etc/profile-m-z/yarn.profile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/etc/profile-m-z/yarn.profile b/etc/profile-m-z/yarn.profile new file mode 100644 index 000000000..f20225050 --- /dev/null +++ b/etc/profile-m-z/yarn.profile | |||
@@ -0,0 +1,29 @@ | |||
1 | # Firejail profile for yarn | ||
2 | # Description: Fast, reliable, and secure dependency management | ||
3 | quiet | ||
4 | # Persistent local customizations | ||
5 | include yarn.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | ignore read-only ${HOME}/.yarnrc | ||
10 | |||
11 | noblacklist ${HOME}/.yarn | ||
12 | noblacklist ${HOME}/.yarn-config | ||
13 | noblacklist ${HOME}/.yarncache | ||
14 | noblacklist ${HOME}/.yarnrc | ||
15 | |||
16 | # If you want whitelisting, change ${HOME}/Projects below to your yarn projects directory and uncomment the lines below. | ||
17 | #mkdir ${HOME}/.yarn | ||
18 | #mkdir ${HOME}/.yarn-config | ||
19 | #mkdir ${HOME}/.yarncache | ||
20 | #mkfile ${HOME}/.yarnrc | ||
21 | #whitelist ${HOME}/.yarn | ||
22 | #whitelist ${HOME}/.yarn-config | ||
23 | #whitelist ${HOME}/.yarncache | ||
24 | #whitelist ${HOME}/.yarnrc | ||
25 | #whitelist ${HOME}/Projects | ||
26 | #include whitelist-common.inc | ||
27 | |||
28 | # Redirect | ||
29 | include nodejs-common.profile | ||