aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2022-03-20 07:33:25 +0000
committerLibravatar GitHub <noreply@github.com>2022-03-20 07:33:25 +0000
commitbc185a94c839b04a18786acb285977821591fcb5 (patch)
tree7207a4cdce5d357d504810caa085aa7241656dc7 /etc
parentwget: add nvm support comment (diff)
downloadfirejail-bc185a94c839b04a18786acb285977821591fcb5.tar.gz
firejail-bc185a94c839b04a18786acb285977821591fcb5.tar.zst
firejail-bc185a94c839b04a18786acb285977821591fcb5.zip
nodejs-common: add comment & minor hardening
Diffstat (limited to 'etc')
-rw-r--r--etc/profile-m-z/nodejs-common.profile12
1 files changed, 10 insertions, 2 deletions
diff --git a/etc/profile-m-z/nodejs-common.profile b/etc/profile-m-z/nodejs-common.profile
index ab69136f6..6382c29f4 100644
--- a/etc/profile-m-z/nodejs-common.profile
+++ b/etc/profile-m-z/nodejs-common.profile
@@ -7,7 +7,14 @@ include nodejs-common.local
7# added by caller profile 7# added by caller profile
8#include globals.local 8#include globals.local
9 9
10blacklist /tmp/.X11-unix 10NOTE: gulp, node-gyp, npm, npx, semver and yarn are all node scripts
11# using the `#!/usr/bin/env node` shebang. By sandboxing node the full
12# node.js stack will be firejailed. The only exception is nvm, which is implemented
13# as a sourced shell function, not an executable binary. Hence it is not
14# directly firejailable. You can work around this by sandboxing the programs
15# used by nvm: curl, sha256sum, tar and wget. We have comments in these
16# profiles on how to enable nvm support via local overrides.
17
11blacklist ${RUNUSER} 18blacklist ${RUNUSER}
12 19
13ignore read-only ${HOME}/.npm-packages 20ignore read-only ${HOME}/.npm-packages
@@ -25,13 +32,13 @@ noblacklist ${HOME}/.yarncache
25noblacklist ${HOME}/.yarnrc 32noblacklist ${HOME}/.yarnrc
26 33
27ignore noexec ${HOME} 34ignore noexec ${HOME}
28
29include allow-bin-sh.inc 35include allow-bin-sh.inc
30 36
31include disable-common.inc 37include disable-common.inc
32include disable-exec.inc 38include disable-exec.inc
33include disable-programs.inc 39include disable-programs.inc
34include disable-shell.inc 40include disable-shell.inc
41include disable-X11.inc
35include disable-xdg.inc 42include disable-xdg.inc
36 43
37# If you want whitelisting, change ${HOME}/Projects below to your node projects directory 44# If you want whitelisting, change ${HOME}/Projects below to your node projects directory
@@ -73,6 +80,7 @@ nodvd
73nogroups 80nogroups
74noinput 81noinput
75nonewprivs 82nonewprivs
83noprinters
76noroot 84noroot
77nosound 85nosound
78notv 86notv