Commit 5de0db72 authored by John Johansen's avatar John Johansen Committed by Kamal Mostafa

UBUNTU: SAUCE: apparmor: deleted dentries can be disconnected

BugLink: http://bugs.launchpad.net/bugs/1615892Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent ee28b0df
......@@ -152,6 +152,9 @@ static int d_namespace_path(struct path *path, char *buf, char **name,
*name = res;
if (!connected)
error = disconnect(path, buf, name, flags, disconnected);
/* Handle two cases:
* 1. A deleted dentry && profile is not allowing mediation of deleted
* 2. On some filesystems, newly allocated dentries appear to the
......@@ -164,9 +167,6 @@ static int d_namespace_path(struct path *path, char *buf, char **name,
goto out;
}
if (!connected)
error = disconnect(path, buf, name, flags, disconnected);
out:
/*
* Append "/" to the pathname. The root directory is a special
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment