]> git.proxmox.com Git - mirror_frr.git/commit - lib/privs.c
libs: control privs changes with refcount
authorMark Stapp <mjs@voltanet.io>
Tue, 2 Apr 2019 09:01:27 +0000 (05:01 -0400)
committerMark Stapp <mjs@voltanet.io>
Mon, 22 Apr 2019 13:32:41 +0000 (09:32 -0400)
commit8875d0515ec970a6779f1c485314e70964487122
tree1f5760d982c59e0c253b95317291ac8ed98b7cf5
parent0fea2134c5483645353eb52528a2c9d104a55d8c
libs: control privs changes with refcount

Use a refcount to control privs changes. Support process-wide
privs apis, as well as per-pthread apis.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/privs.c
lib/privs.h