]> Pileus Git - ~andy/linux/commit
SELinux: move common_audit_data to a noinline slow path function
authorEric Paris <eparis@redhat.com>
Wed, 4 Apr 2012 19:01:42 +0000 (15:01 -0400)
committerEric Paris <eparis@redhat.com>
Mon, 9 Apr 2012 16:23:00 +0000 (12:23 -0400)
commitd4cf970d0732628d514405c5a975024b9e205b0b
tree481f90ea13b2cbc8dd77bc934aa91024c1df6587
parent602a8dd6ea6abd463bc26310c4a1b44919f88e68
SELinux: move common_audit_data to a noinline slow path function

selinux_inode_has_perm is a hot path.  Instead of declaring the
common_audit_data on the stack move it to a noinline function only used in
the rare case we need to send an audit message.

Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/hooks.c