]> granicus.if.org Git - strace/commit
Make parsers of capget and capset syscalls self-contained
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 3 Dec 2014 20:39:20 +0000 (20:39 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 6 Dec 2014 03:41:39 +0000 (03:41 +0000)
commitbf7fdfa96eb5d052b0535a6ce0d3179a770830f9
treeaa59b431c9ccd535ab038f59c50cd653029b328c
parent83034c9de7417f57e02edc1811e5af75ebf826ff
Make parsers of capget and capset syscalls self-contained

Various versions of <linux/capability.h> used to require different
workarounds to avoid conflicts with types defined by libc headers.
Define all required types and constants locally to fix this issue.

* configure.ac (AC_CHECK_HEADERS): Remove linux/capability.h.
* capability.c: Do not include <linux/capability.h>, remove workarounds
for problematic versions of <linux/capability.h> file.
Define CAP_* and _LINUX_CAPABILITY_VERSION_* constants as enums.
(struct __user_cap_header_struct, struct __user_cap_data_struct): Define.
* xlat/cap_version.in: Add #unconditional.
* xlat/capabilities.in: Likewise.
capability.c
configure.ac
xlat/cap_version.in
xlat/capabilities.in