Merge branch 'audit.b38' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current
* 'audit.b38' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current: [PATCH] Abnormal End of Processes [PATCH] match audit name data [PATCH] complete message queue auditing [PATCH] audit inode for all xattr syscalls [PATCH] initialize name osid [PATCH] audit signal recipients [PATCH] add SIGNAL syscall class (v3) [PATCH] auditing ptrace
This commit is contained in:
@@ -1495,6 +1495,8 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs)
|
||||
int flag = 0;
|
||||
int ispipe = 0;
|
||||
|
||||
audit_core_dumps(signr);
|
||||
|
||||
binfmt = current->binfmt;
|
||||
if (!binfmt || !binfmt->core_dump)
|
||||
goto fail;
|
||||
|
||||
@@ -1719,7 +1719,7 @@ do_last:
|
||||
* It already exists.
|
||||
*/
|
||||
mutex_unlock(&dir->d_inode->i_mutex);
|
||||
audit_inode_update(path.dentry->d_inode);
|
||||
audit_inode(pathname, path.dentry->d_inode);
|
||||
|
||||
error = -EEXIST;
|
||||
if (flag & O_EXCL)
|
||||
|
||||
@@ -350,6 +350,7 @@ sys_fgetxattr(int fd, char __user *name, void __user *value, size_t size)
|
||||
f = fget(fd);
|
||||
if (!f)
|
||||
return error;
|
||||
audit_inode(NULL, f->f_path.dentry->d_inode);
|
||||
error = getxattr(f->f_path.dentry, name, value, size);
|
||||
fput(f);
|
||||
return error;
|
||||
@@ -422,6 +423,7 @@ sys_flistxattr(int fd, char __user *list, size_t size)
|
||||
f = fget(fd);
|
||||
if (!f)
|
||||
return error;
|
||||
audit_inode(NULL, f->f_path.dentry->d_inode);
|
||||
error = listxattr(f->f_path.dentry, list, size);
|
||||
fput(f);
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user