mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
filename_lookup(): audit_inode() argument is always 0
We hadn't been passing LOOKUP_PARENT in flags to that thing since filename_parentat() had been split off back in 2015. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
5f9e832c13
commit
ff0ebee239
@ -2350,7 +2350,7 @@ int filename_lookup(int dfd, struct filename *name, unsigned flags,
|
||||
retval = path_lookupat(&nd, flags | LOOKUP_REVAL, path);
|
||||
|
||||
if (likely(!retval))
|
||||
audit_inode(name, path->dentry, flags & LOOKUP_PARENT);
|
||||
audit_inode(name, path->dentry, 0);
|
||||
restore_nameidata();
|
||||
putname(name);
|
||||
return retval;
|
||||
|
Loading…
Reference in New Issue
Block a user