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