diff options
author | 2021-05-18 09:48:26 -0500 | |
---|---|---|
committer | 2021-05-18 09:48:26 -0500 | |
commit | 4bb9a0d025323445c24e28ddca45fdc25e42d062 (patch) | |
tree | 88b26f3ff5f58342631111b135decc52b0a53c2e /etc | |
parent | Merge pull request #4229 from smitsohu/whitelist2 (diff) | |
parent | Harden cargo.profile (diff) | |
download | firejail-4bb9a0d025323445c24e28ddca45fdc25e42d062.tar.gz firejail-4bb9a0d025323445c24e28ddca45fdc25e42d062.tar.zst firejail-4bb9a0d025323445c24e28ddca45fdc25e42d062.zip |
Merge pull request #4284 from rusty-snake/add-cargo.profile
Add cargo.profile
Diffstat (limited to 'etc')
-rw-r--r-- | etc/profile-a-l/cargo.profile | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/etc/profile-a-l/cargo.profile b/etc/profile-a-l/cargo.profile new file mode 100644 index 000000000..043fd6718 --- /dev/null +++ b/etc/profile-a-l/cargo.profile | |||
@@ -0,0 +1,72 @@ | |||
1 | # Firejail profile for cargo | ||
2 | # Description: The Rust package manager | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include cargo.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | ignore noexec ${HOME} | ||
11 | ignore noexec /tmp | ||
12 | |||
13 | blacklist /tmp/.X11-unix | ||
14 | blacklist ${RUNUSER} | ||
15 | |||
16 | noblacklist ${HOME}/.cargo/credentials | ||
17 | noblacklist ${HOME}/.cargo/credentials.toml | ||
18 | |||
19 | # Allows files commonly used by IDEs | ||
20 | include allow-common-devel.inc | ||
21 | |||
22 | # Allow ssh (blacklisted by disable-common.inc) | ||
23 | #include allow-ssh.inc | ||
24 | |||
25 | include disable-common.inc | ||
26 | include disable-exec.inc | ||
27 | include disable-interpreters.inc | ||
28 | include disable-passwdmgr.inc | ||
29 | include disable-programs.inc | ||
30 | include disable-xdg.inc | ||
31 | |||
32 | #mkdir ${HOME}/.cargo | ||
33 | #whitelist ${HOME}/YOUR_CARGO_PROJECTS | ||
34 | #whitelist ${HOME}/.cargo | ||
35 | #whitelist ${HOME}/.rustup | ||
36 | #include whitelist-common.inc | ||
37 | include whitelist-runuser-common.inc | ||
38 | include whitelist-usr-share-common.inc | ||
39 | include whitelist-var-common.inc | ||
40 | |||
41 | caps.drop all | ||
42 | ipc-namespace | ||
43 | machine-id | ||
44 | netfilter | ||
45 | no3d | ||
46 | nodvd | ||
47 | nogroups | ||
48 | noinput | ||
49 | nonewprivs | ||
50 | noroot | ||
51 | nosound | ||
52 | notv | ||
53 | nou2f | ||
54 | novideo | ||
55 | protocol unix,inet,inet6 | ||
56 | seccomp | ||
57 | seccomp.block-secondary | ||
58 | shell none | ||
59 | tracelog | ||
60 | |||
61 | disable-mnt | ||
62 | #private-bin cargo,rustc | ||
63 | private-cache | ||
64 | private-dev | ||
65 | private-etc alternatives,ca-certificates,crypto-policies,group,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,magic,magic.mgc,nsswitch.conf,passwd,pki,protocols,resolv.conf,rpc,services,ssl | ||
66 | private-tmp | ||
67 | |||
68 | dbus-user none | ||
69 | dbus-system none | ||
70 | |||
71 | memory-deny-write-execute | ||
72 | read-write ${HOME}/.cargo/bin | ||