socat icon indicating copy to clipboard operation
socat copied to clipboard

Mark `socat` with CAP_NET_BIND_SERVICE capability

Open ntninja opened this issue 7 years ago • 1 comments

Allow socat to bind to privileged ports inside of the container when run as user process. Example command-line: docker run --rm --user "2004" --cap-add NET_BIND_SERVICE socat tcp6-listen:443,fork tcp4:mail:443

If --cap-add NET_BIND_SERVICE is not set then this change does nothing.

I guess documentation should be also updated to recommend this by default, since privilege dropping is always good.

ntninja avatar Sep 27 '18 12:09 ntninja

This change shouldn't be baked into the image. It should be up to the user to add the right capabilities to their container.

gaby avatar Aug 13 '22 22:08 gaby