From: <ssm...@us...> - 2007-08-21 15:13:30
|
Revision: 2520 http://selinux.svn.sourceforge.net/selinux/?rev=2520&view=rev Author: ssmalley Date: 2007-08-21 08:13:25 -0700 (Tue, 21 Aug 2007) Log Message: ----------- Bug fix: checkpolicy/checkmodule call these functions with a NULL handle. Modified Paths: -------------- trunk/libsepol/src/expand.c Modified: trunk/libsepol/src/expand.c =================================================================== --- trunk/libsepol/src/expand.c 2007-08-16 19:23:53 UTC (rev 2519) +++ trunk/libsepol/src/expand.c 2007-08-21 15:13:25 UTC (rev 2520) @@ -1367,7 +1367,7 @@ } else if (specified & AVRULE_AUDITDENY) { spec = AVTAB_AUDITDENY; } else if (specified & AVRULE_DONTAUDIT) { - if (handle->disable_dontaudit) + if (handle && handle->disable_dontaudit) return EXPAND_RULE_SUCCESS; spec = AVTAB_AUDITDENY; } else if (specified & AVRULE_NEVERALLOW) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |