]> git.hungrycats.org Git - linux/commit
[PATCH] SELinux leak fixes
authorAndrew Morton <akpm@osdl.org>
Tue, 23 Sep 2003 16:44:55 +0000 (09:44 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 23 Sep 2003 16:44:55 +0000 (09:44 -0700)
commit07c9e4a45de71087bada97e746e0b7be07609181
tree94611c81b6606fd79283f5c6fd73d10d5bd8d659
parentb5ec6deaf4c9db989c3fc163485f5a2194215b63
[PATCH] SELinux leak fixes

From: Stephen Smalley <sds@epoch.ncsc.mil>

I believe that the patch below fixes the legitimate leaks in the SELinux
code.  In some cases, it rearranges the code (moving the allocation later
to reduce the need for further cleanup or linking the object into a
containing structure earlier so that the policydb_destroy will handle it
upon any subsequent errors).
security/selinux/ss/mls.c
security/selinux/ss/policydb.c