1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-11-25 15:16:47 +01:00
dotfiles/nono/profiles/docker-lockdown.json
2026-11-18 15:16:57 +01:00

50 lines
1.3 KiB
JSON

{
"meta": {
"name": "docker-dev",
"version": "1.0.0",
"description": "Lock down docker",
"author": "Henrik Hautakoski"
},
"filesystem": {
"deny": [
"/run/docker.sock",
"/var/run/docker.sock"
]
},
"command_policies": {
"commands": {
"docker": {
"from": {
"session": {
"sandbox": {
"fs_read": [
".",
"/usr/libexec/docker/cli-plugins"
],
"unix_socket_bind": [
"/run/docker.sock",
"/var/run/docker.sock"
],
"exec_paths": [
"/usr/libexec/docker/cli-plugins/docker-compose",
"/usr/libexec/docker/cli-plugins/docker-buildx"
],
},
"invocation_policy": {
"default": "deny",
"allow": [
{ "argv": { "exact": ["version"] } },
{ "argv": { "exact": ["ps"] } },
{ "argv": { "exact": ["compose"] } },
{ "argv": { "prefix": ["info"] } },
{ "argv": { "prefix": ["compose", "ps"] } },
{ "argv": { "prefix": ["compose", "version"] } },
{ "argv": { "prefix": ["compose", "exec"] } }
]
}
}
}
}
}
}
}