summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2026-07-26 18:13:48 +0200
committerPaul Moore <paul@paul-moore.com>2026-08-31 16:14:10 -0400
commite26307d83048803274837abf33f65396a88e21ac (patch)
tree79d9d088ebb0a7cfd4a07da8006b942ded0c6641 /scripts/Makefile.thinlto
parentf675d2e9556963133b71df68739b771bf51c3a67 (diff)
downloadlinux-next-e26307d83048803274837abf33f65396a88e21ac.tar.gz
linux-next-e26307d83048803274837abf33f65396a88e21ac.zip
lsm: add LSM_AUDIT_DATA_NS for namespace audit records
Add a new LSM audit data type LSM_AUDIT_DATA_NS that logs namespace information in audit records. Two fields are provided: - namespace_type: the CLONE_NEW* flag identifying the namespace type, logged in hexadecimal. - namespace_id: the unique 64-bit namespace identifier, retrievable from userspace via NS_GET_ID or listns(2). Unlike the proc inode number (inum), namespace_id is never recycled. For namespace creation denials, namespace_id is 0 because the namespace does not exist yet. A new audit data type is needed because no existing LSM_AUDIT_DATA_* type carries namespace information. The closest alternatives (e.g. LSM_AUDIT_DATA_TASK or LSM_AUDIT_DATA_NONE with custom strings) would either lose the namespace type or require ad-hoc formatting that bypasses the structured audit data union. Cc: Günther Noack <gnoack@google.com> Cc: Paul Moore <paul@paul-moore.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Reviewed-by: Günther Noack <gnoack@google.com> Signed-off-by: Mickaël Salaün <mic@digikod.net> [PM: corrected audit fields in the description, subject tweaks] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions