mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:06:51 +00:00
Merge pull request #1606 from bingen/lm_privs
ldpd: Add privs to label manager
This commit is contained in:
commit
3abeaef71e
@ -41,6 +41,8 @@
|
|||||||
|
|
||||||
struct label_manager lbl_mgr;
|
struct label_manager lbl_mgr;
|
||||||
|
|
||||||
|
extern struct zebra_privs_t zserv_privs;
|
||||||
|
|
||||||
DEFINE_MGROUP(LBL_MGR, "Label Manager");
|
DEFINE_MGROUP(LBL_MGR, "Label Manager");
|
||||||
DEFINE_MTYPE_STATIC(LBL_MGR, LM_CHUNK, "Label Manager Chunk");
|
DEFINE_MTYPE_STATIC(LBL_MGR, LM_CHUNK, "Label Manager Chunk");
|
||||||
|
|
||||||
@ -222,6 +224,7 @@ static void lm_zclient_init(char *lm_zserv_path)
|
|||||||
|
|
||||||
/* Set default values. */
|
/* Set default values. */
|
||||||
zclient = zclient_new_notify(zebrad.master, &zclient_options_default);
|
zclient = zclient_new_notify(zebrad.master, &zclient_options_default);
|
||||||
|
zclient->privs = &zserv_privs;
|
||||||
zclient->sock = -1;
|
zclient->sock = -1;
|
||||||
zclient->t_connect = NULL;
|
zclient->t_connect = NULL;
|
||||||
lm_zclient_connect(NULL);
|
lm_zclient_connect(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user