diff options
| author | Chris Metcalf <cmetcalf@tilera.com> | 2010-08-13 19:59:15 -0400 |
|---|---|---|
| committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-08-13 19:59:15 -0400 |
| commit | 7d72e6fa56c4100b9669efe0044f77ed9eb785a1 (patch) | |
| tree | 5e90bf4969809a1ab20b97432b85be20ccfaa1f4 /kernel/auditsc.c | |
| parent | ba00376b0b13f234d839541a7b36a5bf5c2a4036 (diff) | |
| parent | 2be1f3a73dd02e38e181cf5abacb3d45a6a2d6b8 (diff) | |
Merge branch 'master' into for-linus
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 |
