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
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -14,7 +14,7 @@ · 13 unmodified lines | ||
| 14 | 14 | #define _LINUX_CAPABILITY_H |
| 15 | 15 | |
| 16 | 16 | #include <uapi/linux/capability.h> |
| 17 | − | |
| 17 | +#include <linux/uidgid.h> | |
| 18 | 18 | |
| 19 | 19 | #define _KERNEL_CAPABILITY_VERSION _LINUX_CAPABILITY_VERSION_3 |
| 20 | 20 | #define _KERNEL_CAPABILITY_U32S _LINUX_CAPABILITY_U32S_3 |
| @@ -25,11 +25,12 @@ typedef struct kernel_cap_struct { · 4 unmodified lines | ||
| 25 | 25 | __u32 cap[_KERNEL_CAPABILITY_U32S]; |
| 26 | 26 | } kernel_cap_t; |
| 27 | 27 | |
| 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 */ | |
| 29 | 29 | struct cpu_vfs_cap_data { |
| 30 | 30 | __u32 magic_etc; |
| 31 | 31 | kernel_cap_t permitted; |
| 32 | 32 | kernel_cap_t inheritable; |
| 33 | + kuid_t rootid; | |
| 33 | 34 | }; |
| 34 | 35 | |
| 35 | 36 | #define _USER_CAP_HEADER_SIZE (sizeof(struct __user_cap_header_struct)) |