Skip to content

How to launch dnsmasq as dnsmasq user in a network namespace? #4940

Answered by rusty-snake
crocket asked this question in Q&A
Discussion options

You must be logged in to vote

Summary

  1. If you want to bind to a privileged port (port < net.ipv4.ip_unprivileged_port_start), you need to be root or have CAP_NET_BIND_SERVICE.
  2. If you set PR_SET_NO_NEW_PRIVS, file capabilities are ignored.

Replies: 4 comments 18 replies

Comment options

You must be logged in to vote
1 reply
@crocket
Comment options

Comment options

You must be logged in to vote
13 replies
@rusty-snake
Comment options

@rusty-snake
Comment options

@crocket
Comment options

@rusty-snake
Comment options

@crocket
Comment options

Comment options

You must be logged in to vote
3 replies
@crocket
Comment options

@rusty-snake
Comment options

@crocket
Comment options

Answer selected by crocket
Comment options

You must be logged in to vote
1 reply
@kmk3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
networking Issues related to networking features (--net=, etc)
4 participants