vfs: have do_path_lookup call __audit_inode directly
PATCH 1/1 vfs: have do_path_lookup call __audit_inode directly
Since we're checking for a dummy audit context here already, we can call __audit_inode directly and skip the check that audit_inode does.
Signed-off-by Jeff Layton <[email protected]>
--- fs/namei.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/namei.c +1 -1
@@ -1785,7 +1785,7 @@ static int do_path_lookup(int dfd, const char *name,if (likely (!retval)) {if (unlikely (!audit_dummy_context ())) {if (nd->path.dentry && nd->inode) -audit_inode (name, nd->path.dentry); +__audit_inode (name, nd->path.dentry); } }return retval;
Signature · 1 line
1.7.7.6