lkml.org 
[lkml]   [2012]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Smack: setprocattr memory leak fix
Date
Casey Schaufler <casey@schaufler-ca.com> wrote:

> From: Casey Schaufler <casey@schaufler-ca.com>
> Subject: [PATCH] Smack: setprocattr memory leak fix
>
> The data structure allocations being done in prepare_creds
> are duplicated in smack_setprocattr. This results in the
> structure allocated in prepare_creds being orphaned and
> never freed. The duplicate code is removed from
> smack_setprocattr.
>
> Targeted for git://git.gitorious.org/smack-next/kernel.git
>
> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>

Acked-by: David Howells <dhowells@redhat.com>

Note that I do have a patch to make Smack share rule lists - I've posted it a
number of times, but I take it you're not interested.

5707 06/13 [To:casey@schauf] [PATCH 1/3] Smack: Constify some pointers<<Mak
5708 06/13 [To:casey@schauf] [PATCH 2/3] Smack: Further constification<<M
5709 06/13 [To:casey@schauf] [PATCH 3/3] Smack: Use rule list tail sharin

David


\
 
 \ /
  Last update: 2012-08-23 15:21    [W:1.007 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site