diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exec.c | 2 | ||||
-rw-r--r-- | fs/namei.c | 2 | ||||
-rw-r--r-- | fs/xattr.c | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -1495,6 +1495,8 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs) | |||
1495 | int flag = 0; | 1495 | int flag = 0; |
1496 | int ispipe = 0; | 1496 | int ispipe = 0; |
1497 | 1497 | ||
1498 | audit_core_dumps(signr); | ||
1499 | |||
1498 | binfmt = current->binfmt; | 1500 | binfmt = current->binfmt; |
1499 | if (!binfmt || !binfmt->core_dump) | 1501 | if (!binfmt || !binfmt->core_dump) |
1500 | goto fail; | 1502 | goto fail; |
diff --git a/fs/namei.c b/fs/namei.c index b3780e3fc88e..5e2d98d10c5d 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1719,7 +1719,7 @@ do_last: | |||
1719 | * It already exists. | 1719 | * It already exists. |
1720 | */ | 1720 | */ |
1721 | mutex_unlock(&dir->d_inode->i_mutex); | 1721 | mutex_unlock(&dir->d_inode->i_mutex); |
1722 | audit_inode_update(path.dentry->d_inode); | 1722 | audit_inode(pathname, path.dentry->d_inode); |
1723 | 1723 | ||
1724 | error = -EEXIST; | 1724 | error = -EEXIST; |
1725 | if (flag & O_EXCL) | 1725 | if (flag & O_EXCL) |
diff --git a/fs/xattr.c b/fs/xattr.c index 9f4568b55b0f..4523aca79659 100644 --- a/fs/xattr.c +++ b/fs/xattr.c | |||
@@ -350,6 +350,7 @@ sys_fgetxattr(int fd, char __user *name, void __user *value, size_t size) | |||
350 | f = fget(fd); | 350 | f = fget(fd); |
351 | if (!f) | 351 | if (!f) |
352 | return error; | 352 | return error; |
353 | audit_inode(NULL, f->f_path.dentry->d_inode); | ||
353 | error = getxattr(f->f_path.dentry, name, value, size); | 354 | error = getxattr(f->f_path.dentry, name, value, size); |
354 | fput(f); | 355 | fput(f); |
355 | return error; | 356 | return error; |
@@ -422,6 +423,7 @@ sys_flistxattr(int fd, char __user *list, size_t size) | |||
422 | f = fget(fd); | 423 | f = fget(fd); |
423 | if (!f) | 424 | if (!f) |
424 | return error; | 425 | return error; |
426 | audit_inode(NULL, f->f_path.dentry->d_inode); | ||
425 | error = listxattr(f->f_path.dentry, list, size); | 427 | error = listxattr(f->f_path.dentry, list, size); |
426 | fput(f); | 428 | fput(f); |
427 | return error; | 429 | return error; |