Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
52 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#unconditional | ||
_LINUX_CAPABILITY_VERSION_1 | ||
_LINUX_CAPABILITY_VERSION_2 | ||
_LINUX_CAPABILITY_VERSION_3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#unconditional | ||
1<<CAP_CHOWN | ||
1<<CAP_DAC_OVERRIDE | ||
1<<CAP_DAC_READ_SEARCH | ||
|