]> git.proxmox.com Git - mirror_frr.git/commit - lib/libfrr.c
lib: privs: make uid/gid accessible before setuid
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 1 Jun 2017 16:33:08 +0000 (18:33 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 2 Aug 2017 21:36:39 +0000 (23:36 +0200)
commit37a1f2fbb6e05053098a5f1af5eff16ac523dd35
tree537022bb34cb3c92d2ae2d6c131f12d46190fdf5
parent154b9e8f9f08f5be2d3d84f7565e3ce7921b8b35
lib: privs: make uid/gid accessible before setuid

This splits off privs_preinit(), which does the lookups for user and
group IDs.  This is so the init code can create state directories while
still running as root.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ldpd/lde.c
ldpd/ldpe.c
lib/libfrr.c
lib/privs.c
lib/privs.h
ospfclient/ospfclient.c
tests/lib/test_privs.c