[PATCH] Capture selinux subject/object context information.
authorDustin Kirkland <dustin.kirkland@us.ibm.com>
Thu, 3 Nov 2005 17:15:16 +0000 (17:15 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Mar 2006 19:08:54 +0000 (14:08 -0500)
commit8c8570fb8feef2bc166bee75a85748b25cda22d9
treeed783d405ea9d5f3d3ccc57fb56c7b7cb2cdfb82
parentc8edc80c8b8c397c53f4f659a05b9ea6208029bf
[PATCH] Capture selinux subject/object context information.

This patch extends existing audit records with subject/object context
information. Audit records associated with filesystem inodes, ipc, and
tasks now contain SELinux label information in the field "subj" if the
item is performing the action, or in "obj" if the item is the receiver
of an action.

These labels are collected via hooks in SELinux and appended to the
appropriate record in the audit code.

This additional information is required for Common Criteria Labeled
Security Protection Profile (LSPP).

[AV: fixed kmalloc flags use]
[folded leak fixes]
[folded cleanup from akpm (kfree(NULL)]
[folded audit_inode_context() leak fix]
[folded akpm's fix for audit_ipc_perm() definition in case of !CONFIG_AUDIT]

Signed-off-by: Dustin Kirkland <dustin.kirkland@us.ibm.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/audit.h
include/linux/security.h
ipc/msg.c
ipc/sem.c
ipc/shm.c
kernel/audit.c
kernel/auditsc.c
security/dummy.c
security/selinux/hooks.c