Improve GCRYCTL_DISABLE_PRIV_DROP by also disabling cap_ calls.
authorWerner Koch <wk@gnupg.org>
Mon, 7 Sep 2015 12:02:09 +0000 (14:02 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 7 Sep 2015 12:02:09 +0000 (14:02 +0200)
commit3a3d5410cc83f7069c7cb1ab384905f382292d32
treec450f8933b592c92f48d02c94dfc028fce544e26
parente97c62a4a687b56d00a2d0a63e072a977f8eb81c
Improve GCRYCTL_DISABLE_PRIV_DROP by also disabling cap_ calls.

* src/secmem.c (lock_pool, secmem_init): Do not call any cap_
functions if NO_PRIV_DROP is set.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/secmem.c