apparmor: fix display of .ns_name for containers
authorJohn Johansen <john.johansen@canonical.com>
Tue, 23 Jan 2018 09:47:42 +0000 (01:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Apr 2018 06:55:11 +0000 (08:55 +0200)
commit93d36bc6569875951bdaad3cb92db54e8e4ac911
tree27e12a70427e090148e0f4e78cb78bdb8e9f1645
parent5f7dc7d33ed31ededd9b0fad1f9dc8f37e2f13b8
apparmor: fix display of .ns_name for containers

commit 040d9e2bce0a5b321c402b79ee43a8e8d2fd3b06 upstream.

The .ns_name should not be virtualized by the current ns view. It
needs to report the ns base name as that is being used during startup
as part of determining apparmor policy namespace support.

BugLink: http://bugs.launchpad.net/bugs/1746463
Fixes: d9f02d9c237aa ("apparmor: fix display of ns name")
Cc: Stable <stable@vger.kernel.org>
Reported-by: Serge Hallyn <serge@hallyn.com>
Tested-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/apparmor/apparmorfs.c