History

audit: add support for fcaps v3

V3 namespaced file capabilities were introduced in commit 8db6c34f1dbc ("Introduce v3 namespaced file capabilities") Add support for these by adding the "frootid" field to the existing fcaps fields in the NAME and BPRM_FCAPS records. Please see github issue https://github.com/linux-audit/audit-kernel/issues/103

Richard Guy Briggs committed 7 years ago

Commit 2fec30e1 parent 4b7d2485 files · +14 −4Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/capability.h+3−2
@@ -14,7 +14,7 @@ · 13 unmodified lines
1414 #define _LINUX_CAPABILITY_H
1515
1616 #include <uapi/linux/capability.h>
17−
17+#include <linux/uidgid.h>
1818
1919 #define _KERNEL_CAPABILITY_VERSION _LINUX_CAPABILITY_VERSION_3
2020 #define _KERNEL_CAPABILITY_U32S _LINUX_CAPABILITY_U32S_3
@@ -25,11 +25,12 @@ typedef struct kernel_cap_struct { · 4 unmodified lines
2525 __u32 cap[_KERNEL_CAPABILITY_U32S];
2626 } kernel_cap_t;
2727
28−/* exact same as vfs_cap_data but in cpu endian and always filled completely */
28+/* same as vfs_ns_cap_data but in cpu endian and always filled completely */
2929 struct cpu_vfs_cap_data {
3030 __u32 magic_etc;
3131 kernel_cap_t permitted;
3232 kernel_cap_t inheritable;
33+ kuid_t rootid;
3334 };
3435
3536 #define _USER_CAP_HEADER_SIZE (sizeof(struct __user_cap_header_struct))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t