Fixed building with backported AppArmor
This commit is contained in:
@@ -158,7 +158,7 @@ static int d_namespace_path(struct path *path, char *buf, char **name,
|
||||
* security_path hooks as a deleted dentry except without an inode
|
||||
* allocated.
|
||||
*/
|
||||
if (d_unlinked(path->dentry) && d_is_positive(path->dentry) &&
|
||||
if (d_unlinked(path->dentry) && path->dentry->d_inode &&
|
||||
!(flags & PATH_MEDIATE_DELETED)) {
|
||||
error = -ENOENT;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user