From 71fa9f2cae0427d42e892c5e214295040a35b049 Mon Sep 17 00:00:00 2001 From: David Scott Date: Mon, 18 Oct 2021 10:16:14 +0100 Subject: [PATCH] pkg/dm-crypt: grant access to all devices The package needs block devices e.g. for /dev/sda It also needs character devices for /dev/mapper/ Signed-off-by: David Scott --- pkg/dm-crypt/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/dm-crypt/build.yml b/pkg/dm-crypt/build.yml index a255f0c84..2553e55e9 100644 --- a/pkg/dm-crypt/build.yml +++ b/pkg/dm-crypt/build.yml @@ -3,6 +3,10 @@ config: binds: - /dev:/dev - /etc/dm-crypt:/etc/dm-crypt + devices: + # all devices (/dev/mapper is a character device) + - path: all + type: a capabilities: - CAP_SYS_ADMIN - CAP_MKNOD