Selective supplemental groups #19016
Replies: 2 comments 1 reply
-
No, we can either leak all groups into the container or only the groups defined in /etc/subgid for the user. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, @rhatdan! However I am not sure if I follow after rereading both subgid(5) and newgidmap(1). Just to make sure I am getting my point across correctly; basically I have a user on the host that belongs to the following groups:
What I am after is to use a USB device as controlled by the As you mentioned, that leaks all groups into the container, so in case a container process manages to escape, it would then have the necessary permissions to access the resources granted by the remaining groups. Having said that, I have tried to fiddle with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way of being more selective of what supplemental host groups can be shared with a container? Currently, it seems that all of them are shared with
--group-add keep-groups
and I reckon that does increase a container's attack surface in the case of an escape.Beta Was this translation helpful? Give feedback.
All reactions