]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] selinux: Fix NULL deref in policydb_destroy
authorStephen Smalley <sds@tycho.nsa.gov>
Sun, 23 Oct 2005 19:57:15 +0000 (12:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 23 Oct 2005 23:38:38 +0000 (16:38 -0700)
commit2e281f15e8867f99ab3fee54960192c5fe4cd231
tree1b4446dc0a2651a340be0c0485c8e053cdb27407
parentff2999955759f53cf68565db062eee16a5e6d232
[PATCH] selinux: Fix NULL deref in policydb_destroy

This patch fixes a possible NULL dereference in policydb_destroy, where
p->type_attr_map can be NULL if policydb_destroy is called to clean up a
partially loaded policy upon an error during policy load.  Please apply.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/ss/policydb.c