diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-13 15:26:03 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-13 16:32:58 +0100 |
| commit | 3bc34908e86ee01f8eb4f8d39a4075c865d56370 (patch) | |
| tree | 3726ca16f4f2f34b3b22f307fd0d3cadf9793dac /pimd/pim_instance.c | |
| parent | 1c9d288e496d0fc20baeadd2e792e927a6f50312 (diff) | |
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 <philippe.guibert@6wind.com>
Diffstat (limited to 'pimd/pim_instance.c')
| -rw-r--r-- | pimd/pim_instance.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
