diff options
author | John Johansen <john.johansen@canonical.com> | 2015-11-18 11:41:05 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-16 09:33:17 +0200 |
commit | 4e495a5e3aac49954bdfea0013805a8c342bab85 (patch) | |
tree | 9afc2d50639bbdd9eca4b7f2f5abd8cc4e5f290a | |
parent | eb860ec1a5c4e4cb6a6697cd50b7a6d84516cfd0 (diff) | |
download | linux-stable-4e495a5e3aac49954bdfea0013805a8c342bab85.tar.gz linux-stable-4e495a5e3aac49954bdfea0013805a8c342bab85.tar.bz2 linux-stable-4e495a5e3aac49954bdfea0013805a8c342bab85.zip |
apparmor: fix ref count leak when profile sha1 hash is read
commit 0b938a2e2cf0b0a2c8bac9769111545aff0fee97 upstream.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | security/apparmor/apparmorfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index ad4fa49ad1db..9068369f8a1b 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -331,6 +331,7 @@ static int aa_fs_seq_hash_show(struct seq_file *seq, void *v) seq_printf(seq, "%.2x", profile->hash[i]); seq_puts(seq, "\n"); } + aa_put_profile(profile); return 0; } |