]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] new predicate - AUDIT_FILETYPE
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 28 Apr 2008 08:15:49 +0000 (04:15 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 28 Apr 2008 10:28:37 +0000 (06:28 -0400)
commit39e8c33c018088adb0df9da81d77c1d7a7d38cc9
tree9d4dc19d849dd23cf00cee0851fd402062cdf1ea
parent1f1fd893c972a046f81117f467577cb797fdde7f
[PATCH] new predicate - AUDIT_FILETYPE

Argument is S_IF... | <index>, where index is normally 0 or 1.
Triggers if chosen element of ctx->names[] is present and the
mode of object in question matches the upper bits of argument.
I.e. for things like "is the argument of that chmod a directory",
etc.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/audit.h
kernel/auditfilter.c
kernel/auditsc.c