lkml.org 
[lkml]   [2006]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 15/23] [PATCH] SELinux: fix size-128 slab leak
    -stable review patch.  If anyone has any objections, please let us know.
    ------------------

    Remove private inode tests from security_inode_alloc and security_inode_free,
    as we otherwise end up leaking inode security structures for private inodes.

    Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
    Acked-by: James Morris <jmorris@namei.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    ---
    include/linux/security.h | 4 ----
    1 files changed, 4 deletions(-)

    Index: linux-2.6.15.3/include/linux/security.h
    ===================================================================
    --- linux-2.6.15.3.orig/include/linux/security.h
    +++ linux-2.6.15.3/include/linux/security.h
    @@ -1437,15 +1437,11 @@ static inline void security_sb_post_pivo

    static inline int security_inode_alloc (struct inode *inode)
    {
    - if (unlikely (IS_PRIVATE (inode)))
    - return 0;
    return security_ops->inode_alloc_security (inode);
    }

    static inline void security_inode_free (struct inode *inode)
    {
    - if (unlikely (IS_PRIVATE (inode)))
    - return;
    security_ops->inode_free_security (inode);
    }

    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-02-08 07:52    [W:0.023 / U:121.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site