1
0
Fork 0

Allow device through cgroupv1/eBPF device filter

main
Ambrose Chua 2021-05-15 20:12:00 +08:00
parent bdc2402131
commit af821dd392
1 changed files with 10 additions and 0 deletions

View File

@ -11,7 +11,17 @@ if [ -f config.json ]; then
"source": "/dev/kvm",
"options": [ "bind", "rw" ]
}
] |
.linux.resources.devices |= . + [
{
"allow": true,
"type": "c",
"major": 10,
"minor": 232,
"access": "rwm"
}
]' config.old.json > config.json
cp config.json /tmp/config.json
fi
exec $RUNC "$@"