summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_main.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-03-02 15:20:43 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-03-02 15:20:43 +0100
commit4b322ffebb13880f6fc6175acb926c225b07d117 (patch)
tree997f99058fefb320eec324fe59941f6730e0eabe /bgpd/bgp_main.c
parentMerge pull request #1784 from donaldsharp/documentation (diff)
downloadfrr-4b322ffebb13880f6fc6175acb926c225b07d117.tar.xz
frr-4b322ffebb13880f6fc6175acb926c225b07d117.zip
bgpd,ospfd: add sys_admin capabilities
This capability, when used, is mapped over linux sys_admin capability. This is necessary from the daemon perspective, in order to handle NETNS based VRFs, because calling setns() requires sys admin capability. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r--bgpd/bgp_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index 82c74e4af..30b7afff9 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -106,7 +106,7 @@ static int retain_mode = 0;
/* privileges */
static zebra_capabilities_t _caps_p[] = {
- ZCAP_BIND, ZCAP_NET_RAW, ZCAP_NET_ADMIN,
+ ZCAP_BIND, ZCAP_NET_RAW, ZCAP_NET_ADMIN, ZCAP_SYS_ADMIN
};
struct zebra_privs_t bgpd_privs = {