[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-security-module
Subject:    Re: [PATCH] smackfs: check for allocation failures in
From:       James Morris <jmorris () namei ! org>
Date:       2008-12-25 1:17:01
Message-ID: alpine.LRH.1.10.0812251215450.27964 () tundra ! namei ! org
[Download RAW message or body]

On Mon, 22 Dec 2008, Casey Schaufler wrote:

> Sergio Luis wrote:
> >  smackfs: check for allocation failures in smk_set_access() 
> >  While adding a new subject/object pair to smack_list, smk_set_access()
> >  didn't check the return of kzalloc(). 
> >  This patch changes smk_set_access() to return 0 or -ENOMEM, based on
> > kzalloc()'s return. It also updates its caller, smk_write_load(), to
> >  check for smk_set_access()'s return, given it is no longer a void  return
> > function.
> > 
> >  Signed-off-by: Sergio Luis <sergio@larces.uece.br>
> >  To: Casey Schaufler <casey@schaufler-ca.com>
> >  Cc: Ahmed S. Darwish <darwish.07@gmail.com>
> >  Cc: LSM <linux-security-module@vger.kernel.org>
> >  Cc: LKLM <linux-kernel@vger.kernel.org>
> >   
> 
> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
> 

Applied to:
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

I'll push this to Linus after he pulls the main security update, or with 
it on re-send.

-- 
-- 
James Morris
<jmorris@namei.org>


--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic