common.c: Use _LINUX_CAPABILITY_VERSION_3 in cap_header
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 11 Oct 2016 14:16:23 +0000 (16:16 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 12 Oct 2016 14:41:00 +0000 (16:41 +0200)
While check_capability() function already requires
_LINUX_CAPABILITY_VERSION_3 via "#ifdef" since commit 448627953c we still
set the cap_header's version to deprecated _LINUX_CAPABILITY_VERSION. This
results in a warning like

 > capability: warning: `collectd' uses 32-bit capabilities (legacy support in use)

from the kernel when a plugin (like iptables) calls our check_capability()
function.

With this commit we will set cap_header to kernel's current capability
version (_LINUX_CAPABILITY_VERSION_3), which is default since
kernel 2.6.26.

Signed-off-by: Florian Forster <octo@collectd.org>

No differences found