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/ospfclient.c | |
| parent | 154b9e8f9f08f5be2d3d84f7565e3ce7921b8b35 (diff) | |
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/ospfclient.c')
| -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 5713105f42..03b543a786 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); |
