summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-07-16 06:38:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2006-08-03 10:59:42 -0400
commit5ac3a9c26c1cc4861d9cdd8b293fecbfcdc81afe (patch)
tree6ca960fade3253ac358f3614e6a07361fc90d09e /fs
parentd51374adf5f2f88155a072d3d801104e3c0c3d7f (diff)
downloadop-kernel-dev-5ac3a9c26c1cc4861d9cdd8b293fecbfcdc81afe.zip
op-kernel-dev-5ac3a9c26c1cc4861d9cdd8b293fecbfcdc81afe.tar.gz
[PATCH] don't bother with aux entires for dummy context
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 0ab26cb..55a1312 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -159,7 +159,7 @@ char * getname(const char __user * filename)
#ifdef CONFIG_AUDITSYSCALL
void putname(const char *name)
{
- if (unlikely(current->audit_context))
+ if (unlikely(!audit_dummy_context()))
audit_putname(name);
else
__putname(name);
@@ -1125,7 +1125,7 @@ static int fastcall do_path_lookup(int dfd, const char *name,
retval = link_path_walk(name, nd);
out:
if (likely(retval == 0)) {
- if (unlikely(current->audit_context && nd && nd->dentry &&
+ if (unlikely(!audit_dummy_context() && nd && nd->dentry &&
nd->dentry->d_inode))
audit_inode(name, nd->dentry->d_inode);
}
OpenPOWER on IntegriCloud