Skip to content
Permalink
Browse files

zebra: Fix privs elevation

This Commit: f183e38 broke
priviledge escalation on *bsd.  This puts it back.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  • Loading branch information...
donaldsharp committed Nov 16, 2018
1 parent d482ae5 commit 49ddb66ab0e28f0247ec7faf7cd2e8145aeb5d8c
Showing with 1 addition and 1 deletion.
  1. +1 −1 zebra/rt_socket.c
@@ -410,7 +410,7 @@ enum zebra_dplane_result kernel_route_update(struct zebra_dplane_ctx *ctx)
goto done;
}

frr_elevate_privs(ZPRIVS_RAISE) {
frr_elevate_privs(&zserv_privs) {

if (dplane_ctx_get_op(ctx) == DPLANE_OP_ROUTE_DELETE)
kernel_rtm(RTM_DELETE, dplane_ctx_get_dest(ctx),

0 comments on commit 49ddb66

Please sign in to comment.
You can’t perform that action at this time.