[apparmor] [PATCH 14/16] apparmor: fix: ref count leak when profile sha1 hash is read

Seth Arnold seth.arnold at canonical.com
Thu Apr 28 03:31:43 UTC 2016


On Wed, Apr 20, 2016 at 11:52:56PM -0700, John Johansen wrote:
> Signed-off-by: John Johansen <john.johansen at canonical.com>

Acked-by: Seth Arnold <seth.arnold at canonical.com>

THanks

> ---
>  security/apparmor/apparmorfs.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c
> index 45a6199..0d8dd71 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;
>  }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160427/bc0ef8eb/attachment.pgp>


More information about the AppArmor mailing list