Commit Graph

6 Commits

Author SHA1 Message Date
Chris PeBenito
b67bd76e0c Move libqpol parser further in line with checkpolicy.
* Especially remove buggy conditional branch verification -- keep the same
  behavior as checkpolicy.
* No-rules-loading logic no longer needed
2015-02-10 11:43:31 -05:00
Chris PeBenito
79320ba0cc Update parsers to checkpolicy 2.4.
Start dropping ancient psid support and other unused #ifdefs.
2015-02-05 13:05:55 -05:00
Nicolas Iooss
f40cb645f7 Constify yyerror argument in libqpol 2014-11-02 13:02:59 -05:00
Nicolas Iooss
856fa108e0 Fix gcc -Wstrict-prototypes warnings
Python builds C extensions with -Wstrict-prototypes.  This triggers
warnings when defining functions wirth () for "any number of
parameters".

Remove these warnings by always specifying parameters.
2014-11-02 13:02:57 -05:00
Nicolas Iooss
35722ab22d Improve libqpol yyerror/yywarn prototypes
* Add printf format specifier for yyerror2 to be able to use
  "gcc -Wformat-security"
* Constify message string to avoid gcc warnings about casting string
  literals to non-const char*.
2014-11-02 13:02:10 -05:00
Chris PeBenito
8363f8edf7 Import libqpol from setools3.
Break setools3 dependence. Also fix SWIG wrapper to work with SWIG 2.x.
2014-10-24 21:00:24 -04:00