diff options
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index b87a63beb66c..1b31c130d034 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -1835,13 +1835,8 @@ void __audit_getname(const char *name) | |||
1835 | context->names[context->name_count].ino = (unsigned long)-1; | 1835 | context->names[context->name_count].ino = (unsigned long)-1; |
1836 | context->names[context->name_count].osid = 0; | 1836 | context->names[context->name_count].osid = 0; |
1837 | ++context->name_count; | 1837 | ++context->name_count; |
1838 | if (!context->pwd.dentry) { | 1838 | if (!context->pwd.dentry) |
1839 | read_lock(¤t->fs->lock); | 1839 | get_fs_pwd(current->fs, &context->pwd); |
1840 | context->pwd = current->fs->pwd; | ||
1841 | path_get(¤t->fs->pwd); | ||
1842 | read_unlock(¤t->fs->lock); | ||
1843 | } | ||
1844 | |||
1845 | } | 1840 | } |
1846 | 1841 | ||
1847 | /* audit_putname - intercept a putname request | 1842 | /* audit_putname - intercept a putname request |