linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vfs: have do_path_lookup call __audit_inode directly
@ 2012-05-23 19:56 Jeff Layton
  0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2012-05-23 19:56 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel

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 <jlayton@redhat.com>
---
 fs/namei.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index f9e883c..fe51935 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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;
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-23 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-23 19:56 [PATCH] vfs: have do_path_lookup call __audit_inode directly Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).