Code

check_capability: explicitly target recent linux implementations
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 17 May 2016 05:36:34 +0000 (07:36 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 10 Aug 2016 06:07:33 +0000 (08:07 +0200)
commit448627953cde2f7b3b138f53f4f2c62f0d48b726
treec195f21c7bd508f515164efc6cccf0ed2d062eee
parent43954e07f30d05b2da8319749400c9bf4d01c23c
check_capability: explicitly target recent linux implementations

There are several, incompatible, capabilities implementations, all
exposed through `<sys/capability.h>`. Currently only Linux's V3
function and capability sets are supported.

This patch guards against using Linux-specific functions & capabilities
on other implementations, while structring the code to allow adding
support for them.
src/ceph.c
src/daemon/common.c
src/dns.c
src/exec.c
src/iptables.c
src/ping.c
src/turbostat.c