diff options
author | John Johansen <john.johansen@canonical.com> | 2017-06-09 12:11:29 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-06-11 03:11:33 +0300 |
commit | d9f02d9c237aa603d781fe5165ebe383c554376d (patch) | |
tree | 097e1fe8daaa2199c8326cab172f66bea8886ca7 /security/apparmor/apparmorfs.c | |
parent | 5262ef60b1bcc40e17476fda53284621af9b0bab (diff) | |
download | linux-d9f02d9c237aa603d781fe5165ebe383c554376d.tar.xz |
apparmor: fix display of ns name
The ns name being displayed should go through an ns view lookup.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/apparmorfs.c')
-rw-r--r-- | security/apparmor/apparmorfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |