apparmor: fix display of ns name
authorJohn Johansen <john.johansen@canonical.com>
Fri, 9 Jun 2017 09:11:29 +0000 (02:11 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:33 +0000 (17:11 -0700)
The ns name being displayed should go through an ns view lookup.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c

index 818b70130bae5417cae5c21accfe837e43d99592..b64ea21a42adbab76020b8206bd042b0a545ec1c 100644 (file)
@@ -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;
 }