| 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 read-only ${HOME}/.cargo/bin |
| 11 |
|
| 12 |
noblacklist ${HOME}/.cargo/credentials |
| 13 |
noblacklist ${HOME}/.cargo/credentials.toml |
| 14 |
|
| 15 |
#whitelist ${HOME}/.cargo |
| 16 |
#whitelist ${HOME}/.rustup |
| 17 |
|
| 18 |
#private-bin cargo,rustc |
| 19 |
private-etc @tls-ca,host.conf,magic,magic.mgc,rpc,services |
| 20 |
|
| 21 |
memory-deny-write-execute |
| 22 |
|
| 23 |
# Redirect |
| 24 |
include build-systems-common.profile |