aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z
diff options
context:
space:
mode:
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r--etc/profile-m-z/npm.profile64
1 files changed, 64 insertions, 0 deletions
diff --git a/etc/profile-m-z/npm.profile b/etc/profile-m-z/npm.profile
new file mode 100644
index 000000000..2136fb443
--- /dev/null
+++ b/etc/profile-m-z/npm.profile
@@ -0,0 +1,64 @@
1# Firejail profile for npm
2# Description: The Node.js Package Manager
3# This file is overwritten after every install/update
4# Persistent local customizations
5include npm.local
6# Persistent global definitions
7include globals.local
8
9blacklist /tmp/.X11-unix
10blacklist ${RUNUSER}
11
12noblacklist ${HOME}/.npm
13noblacklist ${HOME}/.npmrc
14
15noblacklist ${PATH}/bash
16noblacklist ${PATH}/dash
17noblacklist ${PATH}/sh
18
19ignore noexec ${HOME}
20
21include disable-common.inc
22include disable-exec.inc
23include disable-passwdmgr.inc
24include disable-programs.inc
25include disable-shell.inc
26include disable-xdg.inc
27
28# If you want whitelisting, change the line below to your npm projects directory
29# and uncomment the lines below.
30#mkdir ${HOME}/.npm
31#mkfile ${HOME}/.npmrc
32#whitelist ${HOME}/.npm
33#whitelist ${HOME}/.npmrc
34#whitelist ${HOME}/Projects
35#include whitelist-common.inc
36include whitelist-runuser-common.inc
37include whitelist-usr-share-common.inc
38include whitelist-var-common.inc
39
40caps.drop all
41ipc-namespace
42machine-id
43netfilter
44no3d
45nodvd
46nogroups
47nonewprivs
48noroot
49nosound
50notv
51nou2f
52novideo
53protocol unix,inet,inet6,netlink
54seccomp
55seccomp.block-secondary
56shell none
57
58disable-mnt
59private-dev
60private-etc alternatives,ca-certificates,crypto-policies,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,login.defs,mime.types,nsswitch.conf,pki,protocols,resolv.conf,rpc,services,ssl,xdg
61private-tmp
62
63dbus-user none
64dbus-system none