diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-08 00:43:19 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-08 00:43:19 +0900 |
| commit | f1a53d611604482db975b312f4eeb6a81ea95ce5 (patch) | |
| tree | d8544ee795879a2e0829729bff3f756ec308c62c /container/container.go | |
| parent | b353c3deeaee900761d9ccccc82672402d5529e3 (diff) | |
container: raise CAP_DAC_OVERRIDE
This is required for upperdir and workdir checks in overlayfs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container.go')
| -rw-r--r-- | container/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container/container.go b/container/container.go index 5a7858f1..a0e1c2d5 100644 --- a/container/container.go +++ b/container/container.go @@ -146,7 +146,7 @@ func (p *Container) Start() error { CLONE_NEWIPC | CLONE_NEWUTS | CLONE_NEWCGROUP, // remain privileged for setup - AmbientCaps: []uintptr{CAP_SYS_ADMIN, CAP_SETPCAP}, + AmbientCaps: []uintptr{CAP_SYS_ADMIN, CAP_SETPCAP, CAP_DAC_OVERRIDE}, UseCgroupFD: p.Cgroup != nil, } |
