aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2021-05-16 20:23:21 +0200
committerLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2021-05-16 20:23:21 +0200
commit538a4c027f184018d7d5b44921900e31f6f1e20b (patch)
tree9297e9767c7e63f350f991252e8248cca981ffab /etc
parentMerge pull request #4278 from kmk3/rename-noautopulse (diff)
downloadfirejail-538a4c027f184018d7d5b44921900e31f6f1e20b.tar.gz
firejail-538a4c027f184018d7d5b44921900e31f6f1e20b.tar.zst
firejail-538a4c027f184018d7d5b44921900e31f6f1e20b.zip
Add cargo.profile
Diffstat (limited to 'etc')
-rw-r--r--etc/profile-a-l/cargo.profile80
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
4quiet
5# Persistent local customizations
6include cargo.local
7# Persistent global definitions
8include globals.local
9
10ignore noexec ${HOME}
11ignore noexec /tmp
12
13blacklist /tmp/.X11-unix
14blacklist ${RUNUSER}
15
16noblacklist ${HOME}/.cargo/credentials
17noblacklist ${HOME}/.cargo/credentials.toml
18
19# Allows files commonly used by IDEs
20include 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
35include disable-common.inc
36include disable-exec.inc
37include disable-interpreters.inc
38include disable-passwdmgr.inc
39include disable-programs.inc
40include 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
47include whitelist-runuser-common.inc
48include whitelist-usr-share-common.inc
49include whitelist-var-common.inc
50
51caps.drop all
52ipc-namespace
53machine-id
54netfilter
55no3d
56nodvd
57nogroups
58noinput
59nonewprivs
60noroot
61nosound
62notv
63nou2f
64novideo
65protocol unix,inet,inet6
66seccomp
67seccomp.block-secondary
68shell none
69tracelog
70
71disable-mnt
72#private-bin cargo,rustc
73private-cache
74private-dev
75private-tmp
76
77dbus-user none
78dbus-system none
79
80read-write ${HOME}/.cargo/bin