From 3bc34908e86ee01f8eb4f8d39a4075c865d56370 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Tue, 13 Mar 2018 15:26:03 +0100 Subject: lib: privileges are granted to vty netns command Vty commands that link netns context to a vrf is requiring some privileges. The change consists in retrieving the privileges at the vrf_cmd_init() called by the relevant daemon. Then use it. Signed-off-by: Philippe Guibert --- pimd/pim_instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pimd/pim_instance.c') diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index f92da7fe70..60a3308a00 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -214,7 +214,7 @@ void pim_vrf_init(void) { vrf_init(pim_vrf_new, pim_vrf_enable, pim_vrf_disable, pim_vrf_delete); - vrf_cmd_init(pim_vrf_config_write); + vrf_cmd_init(pim_vrf_config_write, &pimd_privs); } void pim_vrf_terminate(void) -- cgit v1.2.3