mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-17 09:36:33 +03:00
fix(docker): prevent privilege regain after bootstrap
Co-authored-by: yu-xin-c <175149126+yu-xin-c@users.noreply.github.com>
This commit is contained in:
@@ -13,6 +13,10 @@ x-common-config: &common-config
|
||||
- CHOWN
|
||||
- SETGID
|
||||
- SETUID
|
||||
# Prevent the non-root process from regaining capabilities through setuid
|
||||
# binaries or file capabilities left inside the container image.
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
services:
|
||||
nanobot-gateway:
|
||||
|
||||
Reference in New Issue
Block a user