diff options
author | 2021-05-16 20:23:21 +0200 | |
---|---|---|
committer | 2021-05-16 20:23:21 +0200 | |
commit | 538a4c027f184018d7d5b44921900e31f6f1e20b (patch) | |
tree | 9297e9767c7e63f350f991252e8248cca981ffab /etc/profile-a-l | |
parent | Merge pull request #4278 from kmk3/rename-noautopulse (diff) | |
download | firejail-538a4c027f184018d7d5b44921900e31f6f1e20b.tar.gz firejail-538a4c027f184018d7d5b44921900e31f6f1e20b.tar.zst firejail-538a4c027f184018d7d5b44921900e31f6f1e20b.zip |
Add cargo.profile
Diffstat (limited to 'etc/profile-a-l')
-rw-r--r-- | etc/profile-a-l/cargo.profile | 80 |
1 files changed, 80 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..2e00061d9 --- /dev/null +++ b/etc/profile-a-l/cargo.profile | |||
@@ -0,0 +1,80 @@ | |||
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 lua (blacklisted by disable-interpreters.inc) | ||
23 | #include allow-lua.inc | ||
24 | |||
25 | # Allow perl (blacklisted by disable-interpreters.inc) | ||
26 | #include allow-perl.inc | ||
27 | |||
28 | # Allow python (blacklisted by disable-interpreters.inc) | ||
29 | #include allow-python2.inc | ||
30 | #include allow-python3.inc | ||
31 | |||
32 | # Allow ssh (blacklisted by disable-common.inc) | ||
33 | #include allow-ssh.inc | ||
34 | |||
35 | include disable-common.inc | ||
36 | include disable-exec.inc | ||
37 | include disable-interpreters.inc | ||
38 | include disable-passwdmgr.inc | ||
39 | include disable-programs.inc | ||
40 | include disable-xdg.inc | ||
41 | |||
42 | #mkdir ${HOME}/.cargo | ||
43 | #whitelist ${HOME}/YOUR_CARGO_PROJECTS | ||
44 | #whitelist ${HOME}/.cargo | ||
45 | #whitelist ${HOME}/.rustup | ||
46 | #include whitelist-common.inc | ||
47 | include whitelist-runuser-common.inc | ||
48 | include whitelist-usr-share-common.inc | ||
49 | include whitelist-var-common.inc | ||
50 | |||
51 | caps.drop all | ||
52 | ipc-namespace | ||
53 | machine-id | ||
54 | netfilter | ||
55 | no3d | ||
56 | nodvd | ||
57 | nogroups | ||
58 | noinput | ||
59 | nonewprivs | ||
60 | noroot | ||
61 | nosound | ||
62 | notv | ||
63 | nou2f | ||
64 | novideo | ||
65 | protocol unix,inet,inet6 | ||
66 | seccomp | ||
67 | seccomp.block-secondary | ||
68 | shell none | ||
69 | tracelog | ||
70 | |||
71 | disable-mnt | ||
72 | #private-bin cargo,rustc | ||
73 | private-cache | ||
74 | private-dev | ||
75 | private-tmp | ||
76 | |||
77 | dbus-user none | ||
78 | dbus-system none | ||
79 | |||
80 | read-write ${HOME}/.cargo/bin | ||