btrfs-progs: fix scrub behavior when sandboxed

This commit is contained in:
2025-04-22 16:42:24 +00:00
parent 7f9ab477e7
commit 022bc55575

View File

@@ -13,10 +13,13 @@ in
"/sys/block" "/sys/block"
"/sys/dev/block" "/sys/dev/block"
"/sys/devices" "/sys/devices"
#vvv required for `sudo btrfs scrub start`
"/sys/fs"
#vvv required for `sudo btrfs scrub status` to show stats #vvv required for `sudo btrfs scrub status` to show stats
"/var/lib/btrfs" "/var/lib/btrfs"
]; ];
sandbox.tryKeepUsers = true; sandbox.tryKeepUsers = true;
sandbox.keepPids = true; # required for `sudo btrfs scrub start`
sandbox.capabilities = [ "sys_admin" ]; # for `btrfs scrub` sandbox.capabilities = [ "sys_admin" ]; # for `btrfs scrub`
}; };