diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-06-01 18:33:08 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-02 23:36:39 +0200 |
commit | 37a1f2fbb6e05053098a5f1af5eff16ac523dd35 (patch) | |
tree | 537022bb34cb3c92d2ae2d6c131f12d46190fdf5 /ospfclient | |
parent | lib: vty_stdio signal handling (diff) | |
download | frr-37a1f2fbb6e05053098a5f1af5eff16ac523dd35.tar.xz frr-37a1f2fbb6e05053098a5f1af5eff16ac523dd35.zip |
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>
Diffstat (limited to 'ospfclient')
-rw-r--r-- | ospfclient/ospfclient.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfclient/ospfclient.c b/ospfclient/ospfclient.c index 5713105f4..03b543a78 100644 --- a/ospfclient/ospfclient.c +++ b/ospfclient/ospfclient.c @@ -307,6 +307,7 @@ int main(int argc, char *argv[]) } /* Initialization */ + zprivs_preinit(&ospfd_privs); zprivs_init(&ospfd_privs); master = thread_master_create(NULL); |