From c94d18955e8a1e239c063c62ddde00559c91840c Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Sat, 20 Apr 2019 00:41:30 +0000 Subject: vrrpd: use frr_elevate_privs Missed a few in the uplift. Signed-off-by: Quentin Young --- vrrpd/vrrp_ndisc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vrrpd/vrrp_ndisc.c') diff --git a/vrrpd/vrrp_ndisc.c b/vrrpd/vrrp_ndisc.c index 8a439e97c..8081533eb 100644 --- a/vrrpd/vrrp_ndisc.c +++ b/vrrpd/vrrp_ndisc.c @@ -211,11 +211,10 @@ int vrrp_ndisc_una_send_all(struct vrrp_router *r) void vrrp_ndisc_init(void) { - vrrp_privs.change(ZPRIVS_RAISE); + frr_elevate_privs(&vrrp_privs) { ndisc_fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IPV6)); } - vrrp_privs.change(ZPRIVS_LOWER); if (ndisc_fd > 0) { DEBUGD(&vrrp_dbg_sock, -- cgit v1.2.3