]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 9 Feb 2018 19:30:00 +0000 (11:30 -0800)
commitc254104b21ab3faa59c4e06661d510277fc44377
tree6fae38476b2272d2db582cd8bed3fa60b0fec0aa
parentb65b6115a02b8699ded95918eefeffa47c4b791a
apparmor: fix display of .ns_name for containers

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: 854a4cecdf785 ("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>
security/apparmor/apparmorfs.c