programs: btrfs: better sandboxing
This commit is contained in:
@@ -7,6 +7,11 @@ in
|
||||
sandbox.autodetectCliPaths = "existing"; # e.g. `btrfs filesystem df /my/fs`
|
||||
sandbox.extraPaths = [
|
||||
"/dev/btrfs-control"
|
||||
#vvv required for `sudo btrfs filesystem show` with no args
|
||||
"/dev"
|
||||
"/sys/block"
|
||||
"/sys/dev/block"
|
||||
"/sys/devices"
|
||||
];
|
||||
sandbox.tryKeepUsers = true;
|
||||
sandbox.capabilities = [ "sys_admin" ]; # for `btrfs scrub`
|
||||
|
Reference in New Issue
Block a user