Skip to content

Commit f3a80a0

Browse files
maipbuiprabhataravind
authored andcommitted
[docker-orchagent] limit privileged flag for swss container (sonic-net#17598)
[docker-orchagent] limit privileged flag for swss container Signed-off-by: Mai Bui <[email protected]>
1 parent 068acb3 commit f3a80a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/docker-orchagent.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SONIC_BOOKWORM_DBG_DOCKERS += $(DOCKER_ORCHAGENT_DBG)
3737
SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_ORCHAGENT_DBG)
3838

3939
$(DOCKER_ORCHAGENT)_CONTAINER_NAME = swss
40-
$(DOCKER_ORCHAGENT)_RUN_OPT += --privileged -t
40+
$(DOCKER_ORCHAGENT)_RUN_OPT += -t --cap-add=NET_ADMIN --security-opt apparmor=unconfined --security-opt="systempaths=unconfined"
4141
$(DOCKER_ORCHAGENT)_RUN_OPT += -v /etc/network/interfaces:/etc/network/interfaces:ro
4242
$(DOCKER_ORCHAGENT)_RUN_OPT += -v /etc/localtime:/etc/localtime:ro
4343
$(DOCKER_ORCHAGENT)_RUN_OPT += -v /etc/network/interfaces.d/:/etc/network/interfaces.d/:ro

0 commit comments

Comments
 (0)