deliverable/linux.git
19 years agonamei: add audit_inode to all branches in path_lookup
Prasanna Meda [Fri, 29 Apr 2005 15:00:17 +0000 (16:00 +0100)] 
namei: add audit_inode to all branches in path_lookup

Main change is in path_lookup: added a goto to do audit_inode
instead of return statement, when emul_lookup_dentry for root
is successful.The existing code does audit_inode only when
lookup is done in normal root or cwd.

Other changes: Some lookup routines are returning zero on success,
and some are returning zero on failure. I documented the related
function signatures in this code path, so that one can glance over
abstract functions without understanding the entire code.

Signed-off-by: Prasanna Meda <pmeda@akamai.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
19 years agoaudit_log_untrustedstring() warning fix
Andrew Morton [Fri, 29 Apr 2005 14:59:11 +0000 (15:59 +0100)] 
audit_log_untrustedstring() warning fix

kernel/audit.c: In function `audit_log_untrustedstring':
kernel/audit.c:736: warning: comparison is always false due to limited range of data type

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
19 years agoAUDIT: Avoid log pollution by untrusted strings.