From: John Johansen Date: Fri, 9 Jun 2017 09:11:29 +0000 (-0700) Subject: apparmor: fix display of ns name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9f02d9c237aa603d781fe5165ebe383c554376d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git apparmor: fix display of ns name The ns name being displayed should go through an ns view lookup. Signed-off-by: John Johansen --- diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 818b70130bae..b64ea21a42ad 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -1105,7 +1105,7 @@ static int seq_ns_name_show(struct seq_file *seq, void *v) { struct aa_ns *ns = aa_current_profile()->ns; - seq_printf(seq, "%s\n", ns->base.name); + seq_printf(seq, "%s\n", aa_ns_name(ns, ns, true)); return 0; }