aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-05-18 09:48:26 -0500
committerLibravatar GitHub <noreply@github.com>2021-05-18 09:48:26 -0500
commit4bb9a0d025323445c24e28ddca45fdc25e42d062 (patch)
tree88b26f3ff5f58342631111b135decc52b0a53c2e /etc
parentMerge pull request #4229 from smitsohu/whitelist2 (diff)
parentHarden cargo.profile (diff)
downloadfirejail-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.profile72
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
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 ssh (blacklisted by disable-common.inc)
23#include allow-ssh.inc
24
25include disable-common.inc
26include disable-exec.inc
27include disable-interpreters.inc
28include disable-passwdmgr.inc
29include disable-programs.inc
30include 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
37include whitelist-runuser-common.inc
38include whitelist-usr-share-common.inc
39include whitelist-var-common.inc
40
41caps.drop all
42ipc-namespace
43machine-id
44netfilter
45no3d
46nodvd
47nogroups
48noinput
49nonewprivs
50noroot
51nosound
52notv
53nou2f
54novideo
55protocol unix,inet,inet6
56seccomp
57seccomp.block-secondary
58shell none
59tracelog
60
61disable-mnt
62#private-bin cargo,rustc
63private-cache
64private-dev
65private-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
66private-tmp
67
68dbus-user none
69dbus-system none
70
71memory-deny-write-execute
72read-write ${HOME}/.cargo/bin