programs: sandbox cryptsetup and ddrescue (latter is untested, probably lacking!)
This commit is contained in:
parent
1416856fb6
commit
18c54e8b04
|
@ -250,6 +250,25 @@ in
|
|||
|
||||
cargo.persist.byStore.plaintext = [ ".cargo" ];
|
||||
|
||||
# cryptsetup: typical use is `cryptsetup open /dev/loopxyz mappedName`, and creates `/dev/mapper/mappedName`
|
||||
cryptsetup.sandbox.method = "landlock";
|
||||
cryptsetup.sandbox.wrapperType = "wrappedDerivation";
|
||||
cryptsetup.sandbox.extraPaths = [
|
||||
"/dev/mapper"
|
||||
"/dev/random"
|
||||
"/dev/urandom"
|
||||
"/run" #< it needs the whole directory, at least if using landlock
|
||||
"/proc"
|
||||
"/sys/dev/block"
|
||||
"/sys/devices"
|
||||
];
|
||||
cryptsetup.sandbox.capabilities = [ "sys_admin" ];
|
||||
cryptsetup.sandbox.autodetectCliPaths = "existing";
|
||||
|
||||
ddrescue.sandbox.method = "landlock"; # TODO:sandbox: untested
|
||||
ddrescue.sandbox.wrapperType = "wrappedDerivation";
|
||||
ddrescue.sandbox.autodetectCliPaths = "existingFileOrParent";
|
||||
|
||||
# auth token, preferences
|
||||
delfin.sandbox.method = "bwrap";
|
||||
delfin.sandbox.wrapperType = "wrappedDerivation";
|
||||
|
|
Loading…
Reference in New Issue
Block a user