security: add trace event for cap_capable
Subsystems (3)
PATCH v6 1/1 security: add trace event for cap_capable
In cases where we want a stable way to observe/trace cap_capable (e.g. protection from inlining and API updates) add a tracepoint that passes:
- The credentials used
- The user namespace of the resource being accessed
- The user namespace in which the credential provides the capability to access the targeted resource
- The capability to check for
- Bitmask of options defined in include/linux/security.h
- The return value of the check
Signed-off-by Jordan Rome <[email protected]>
--- MAINTAINERS | 1 + include/trace/events/capability.h | 60 +++++++++++++++++++++++++++++++ security/commoncap.c | 57 +++++++++++++++++++---------- 3 files changed, 100 insertions(+), 18 deletions(-) create mode 100644 include/trace/events/capability.h
MAINTAINERS +1 -0
@@ -5103,6 +5103,7 @@ M: Serge Hallyn <[email protected]> L: [email protected] S: Supported F: include/linux/capability.h +F: include/trace/events/capability.h F: include/uapi/linux/capability.h F: kernel/capability.c F: security/commoncap.c
include/trace/events/capability.h new file +60 -0
60 lines not on this page · raw message
security/commoncap.c +39 -18
96 lines not on this page · raw message
--
2.43.5