[PATCH] fix audit oops with invalid operator

Michael C Thompson wrote: [Tue Aug 01 2006, 02:36:36PM EDT]
> The trigger for this oops is:
> # auditctl -a exit,always -S pread64 -F 'inode<1'

Setting the err value will fix it.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by Amy Griffis and committed by Al Viro 5422e01a 6988434e

+2
+2
kernel/auditfilter.c
··· 442 case AUDIT_EQUAL: 443 break; 444 default: 445 goto exit_free; 446 } 447 } ··· 580 case AUDIT_EQUAL: 581 break; 582 default: 583 goto exit_free; 584 } 585 }
··· 442 case AUDIT_EQUAL: 443 break; 444 default: 445 + err = -EINVAL; 446 goto exit_free; 447 } 448 } ··· 579 case AUDIT_EQUAL: 580 break; 581 default: 582 + err = -EINVAL; 583 goto exit_free; 584 } 585 }