mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 14:29:47 +00:00
bgpd: raise privs for SO_BINDTODEVICE
The priv raise was incorrectly dropped in 97896a9
.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
4006e41baf
commit
0def0c9fa3
@ -572,7 +572,9 @@ static int bgp_accept(struct thread *thread)
|
||||
peer->doppelganger = peer1;
|
||||
peer1->doppelganger = peer;
|
||||
peer->fd = bgp_sock;
|
||||
vrf_bind(peer->bgp->vrf_id, bgp_sock, bgp_get_bound_name(peer));
|
||||
frr_with_privs(&bgpd_privs) {
|
||||
vrf_bind(peer->bgp->vrf_id, bgp_sock, bgp_get_bound_name(peer));
|
||||
}
|
||||
bgp_peer_reg_with_nht(peer);
|
||||
bgp_fsm_change_status(peer, Active);
|
||||
BGP_TIMER_OFF(peer->t_start); /* created in peer_create() */
|
||||
|
Loading…
Reference in New Issue
Block a user