]> git.puffer.fish Git - matthieu/frr.git/commit
lib: don't try to change/reset capabilities if process has none
authorMark Stapp <mjs@voltanet.io>
Thu, 11 Jun 2020 19:30:36 +0000 (15:30 -0400)
committerMark Stapp <mjs@voltanet.io>
Thu, 11 Jun 2020 19:31:54 +0000 (15:31 -0400)
commitd617669d3776509363fd0d37eb240fb5dc0fdeaa
treef2d8061a96bd9cecac6550858854a29d6394ba48
parent41b21bfa600731a4096d1c9372b365acaef4065f
lib: don't try to change/reset capabilities if process has none

A couple of daemons take/use no capabilities/privs; allow cleanup
of the privs/capabilities library module even if a daemon has no
caps.

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