]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zserv.c
zebra: don't raise privileges when creating unix zserv socket
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 12 Aug 2017 19:02:42 +0000 (16:02 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 12 Aug 2017 19:13:58 +0000 (16:13 -0300)
commite6c1975af8497f50f484d0dc019e6fa9c97a84c8
tree3f982b18a645b7babb097411c1a0a7c72825cfff
parente1768e0a6e2cecc15ab9fe122e607942d07a46c8
zebra: don't raise privileges when creating unix zserv socket

Raising privileges is only necessary when binding to a TCP/UDP privileged
port (< 1024).

This solves a problem where the zserv.api socket was being created with
root ownership, preventing the client daemons to connect to zebra.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zserv.c