~apparmor-dev/apparmor/master

« back to all changes in this revision

Viewing changes to kernel-patches/4.6/0014-apparmor-fix-ref-count-leak-when-profile-sha1-hash-i.patch

  • Committer: Steve Beattie
  • Date: 2019-02-19 09:38:13 UTC
  • Revision ID: sbeattie@ubuntu.com-20190219093813-ud526ee6hwn8nljz
The AppArmor project has been converted to git and is now hosted on
gitlab.

To get the converted repository, please do
  git clone https://gitlab.com/apparmor/apparmor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From 05a64c434466029b298ee1e78a988cd6a7f80c0e Mon Sep 17 00:00:00 2001
2
 
From: John Johansen <john.johansen@canonical.com>
3
 
Date: Wed, 18 Nov 2015 11:41:05 -0800
4
 
Subject: [PATCH 14/27] apparmor: fix ref count leak when profile sha1 hash is
5
 
 read
6
 
 
7
 
Signed-off-by: John Johansen <john.johansen@canonical.com>
8
 
Acked-by: Seth Arnold <seth.arnold@canonical.com>
9
 
---
10
 
 security/apparmor/apparmorfs.c | 1 +
11
 
 1 file changed, 1 insertion(+)
12
 
 
13
 
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c
14
 
index 45a6199..0d8dd71 100644
15
 
--- a/security/apparmor/apparmorfs.c
16
 
+++ b/security/apparmor/apparmorfs.c
17
 
@@ -331,6 +331,7 @@ static int aa_fs_seq_hash_show(struct seq_file *seq, void *v)
18
 
                        seq_printf(seq, "%.2x", profile->hash[i]);
19
 
                seq_puts(seq, "\n");
20
 
        }
21
 
+       aa_put_profile(profile);
22
 
 
23
 
        return 0;
24
 
 }
25
 
2.7.4
26