X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Faudit.c;h=8e7dc1c63aa9b1d5ce1fcdc8fa5796578b93aaed;hb=refs%2Fheads%2Fb2.6.28-omap-h63xx;hp=8c21625ef93823ebf7f9a574236d71e009e0bb58;hpb=4291130595065aa3c9fbb9130231f65e4914629a;p=linux-2.6-omap-h63xx.git diff --git a/lib/audit.c b/lib/audit.c index 8c21625ef93..8e7dc1c63aa 100644 --- a/lib/audit.c +++ b/lib/audit.c @@ -23,13 +23,25 @@ static unsigned chattr_class[] = { ~0U }; +static unsigned signal_class[] = { +#include +~0U +}; + +int audit_classify_arch(int arch) +{ + return 0; +} + int audit_classify_syscall(int abi, unsigned syscall) { switch(syscall) { case __NR_open: return 2; +#ifdef __NR_openat case __NR_openat: return 3; +#endif #ifdef __NR_socketcall case __NR_socketcall: return 4; @@ -47,6 +59,7 @@ static int __init audit_classes_init(void) audit_register_class(AUDIT_CLASS_READ, read_class); audit_register_class(AUDIT_CLASS_DIR_WRITE, dir_class); audit_register_class(AUDIT_CLASS_CHATTR, chattr_class); + audit_register_class(AUDIT_CLASS_SIGNAL, signal_class); return 0; }