]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: update pledge promise in lde
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 27 Mar 2017 18:03:34 +0000 (15:03 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 28 Mar 2017 00:50:05 +0000 (21:50 -0300)
With the introduction of the label manager, now lde needs to pledge
"unix" as well in order to connect to zebra.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/lde.c

index 3247c8c1cc07d45fdf163967e009a3cdf17b2545..0e50f9689f78297e6cbd5b11c97fb25da8af4810 100644 (file)
@@ -166,7 +166,7 @@ lde(const char *user, const char *group, u_short instance)
        zprivs_init(&lde_privs);
 
 #ifdef HAVE_PLEDGE
-       if (pledge("stdio recvfd", NULL) == -1)
+       if (pledge("stdio recvfd unix", NULL) == -1)
                fatal("pledge");
 #endif