nodejs-common: add comment & minor hardening

This commit is contained in:
glitsj16 2022-03-20 07:33:25 +00:00 committed by GitHub
parent 538050b981
commit bc185a94c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,14 @@ include nodejs-common.local
# added by caller profile
#include globals.local
blacklist /tmp/.X11-unix
NOTE: gulp, node-gyp, npm, npx, semver and yarn are all node scripts
# using the `#!/usr/bin/env node` shebang. By sandboxing node the full
# node.js stack will be firejailed. The only exception is nvm, which is implemented
# as a sourced shell function, not an executable binary. Hence it is not
# directly firejailable. You can work around this by sandboxing the programs
# used by nvm: curl, sha256sum, tar and wget. We have comments in these
# profiles on how to enable nvm support via local overrides.
blacklist ${RUNUSER}
ignore read-only ${HOME}/.npm-packages
@ -25,13 +32,13 @@ noblacklist ${HOME}/.yarncache
noblacklist ${HOME}/.yarnrc
ignore noexec ${HOME}
include allow-bin-sh.inc
include disable-common.inc
include disable-exec.inc
include disable-programs.inc
include disable-shell.inc
include disable-X11.inc
include disable-xdg.inc
# If you want whitelisting, change ${HOME}/Projects below to your node projects directory
@ -73,6 +80,7 @@ nodvd
nogroups
noinput
nonewprivs
noprinters
noroot
nosound
notv