diff options
author | David Lamparter <equinox@diac24.net> | 2021-02-04 22:26:41 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2021-02-12 19:28:52 +0100 |
commit | 877057b67adcd9ed15e34bc1cf39281dc08f64cc (patch) | |
tree | 41a9c564dfed1e34d1dff7c97327f99982169bcb /lib/privs.h | |
parent | lib: memorize what fds were open at startup (diff) | |
download | frr-877057b67adcd9ed15e34bc1cf39281dc08f64cc.tar.xz frr-877057b67adcd9ed15e34bc1cf39281dc08f64cc.zip |
lib: have a lib_privs for ... lib privs
Logging code might want to raise privs for file operations.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/privs.h')
-rw-r--r-- | lib/privs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/privs.h b/lib/privs.h index 18ba8e888..2dcdbe2e6 100644 --- a/lib/privs.h +++ b/lib/privs.h @@ -100,6 +100,8 @@ struct zprivs_ids_t { gid_t gid_vty; /* vty gid */ }; +extern struct zebra_privs_t *lib_privs; + /* initialise zebra privileges */ extern void zprivs_preinit(struct zebra_privs_t *zprivs); extern void zprivs_init(struct zebra_privs_t *zprivs); |