mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
new helper: audit_file()
... for situations when we don't have any candidate in pathnames - basically, in descriptor-based syscalls. [Folded the build fix for !CONFIG_AUDITSYSCALL configs from Chen Gang] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6f4e0d5aaa
commit
9f45f5bf30
5 changed files with 24 additions and 14 deletions
|
|
@ -1897,6 +1897,11 @@ out:
|
|||
audit_copy_inode(n, dentry, inode);
|
||||
}
|
||||
|
||||
void __audit_file(const struct file *file)
|
||||
{
|
||||
__audit_inode(NULL, file->f_path.dentry, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* __audit_inode_child - collect inode info for created/removed objects
|
||||
* @parent: inode of dentry parent
|
||||
|
|
|
|||
Loading…
Reference in a new issue