Skip to contentSkip to conversation

vfs: have do_path_lookup call __audit_inode directly

PATCH New Jeff Layton 1 participant 1 message May 23, 2012 VFS

lore
Share & tools
lore
#0 lore raw

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.

---
 fs/namei.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/namei.c +1 -1
index f9e883c..fe51935 100644
@@ -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