Skip to contentSkip to conversation

checkpolicy - misleading error

PATCH New Joshua Brindle 1 participant 1 message Oct 4, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpolicy - misleading error

This fixes a misleading error when a type or attribute could not be declared but the error only said attribute.

module_compiler.c +1 -1
diff -pur -x .svn checkpolicy/module_compiler.c checkpolicy/module_compiler.c
@@ -308,7 +307,7 @@ type_datum_t *declare_type(unsigned char
                 return NULL;
         }
         case -1: {
-                yyerror("could not declare attribute here");
+                yyerror("could not declare type/attribute here");
                 return NULL;
         }
         case 0: