selinux/checkpolicy
Christian Göttsche 82d99136cf checkpolicy: drop global policyvers variable
Drop the global variable policyvers.  The variable is only used within
checkpolicy.c and checkmodule.c, but never in any shared code.

Since the variable declaration is the only content of checkpolicy.h drop
it.

Also set the policy version before calls to read_source_policy(), so the
parser can access the requested version for checks this way.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
2024-05-01 16:48:25 -04:00
..
fuzz checkpolicy: drop global policyvers variable 2024-05-01 16:48:25 -04:00
test libsepol: Use a dynamic buffer in sepol_av_to_string() 2024-03-04 09:45:41 -05:00
tests checkpolicy/tests: add test for splitting xperm rule 2024-05-01 16:48:22 -04:00
.gitignore checkpolicy: add round-trip tests 2023-11-07 16:27:26 -05:00
LICENSE
Makefile checkpolicy: add libfuzz based fuzzer 2024-03-04 09:54:47 -05:00
VERSION Update VERSIONs to 3.6 for release. 2023-12-13 15:46:22 +01:00
checkmodule.8 checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
checkmodule.c checkpolicy: drop global policyvers variable 2024-05-01 16:48:25 -04:00
checkpolicy.8 checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
checkpolicy.c checkpolicy: drop global policyvers variable 2024-05-01 16:48:25 -04:00
module_compiler.c checkpolicy: drop union stack_item_u 2024-04-04 11:17:50 -04:00
module_compiler.h checkpolicy: add libfuzz based fuzzer 2024-03-04 09:54:47 -05:00
parse_util.c checkpolicy: cleanup resources on parse error 2024-03-04 09:54:52 -05:00
parse_util.h
policy_define.c checkpolicy: drop global policyvers variable 2024-05-01 16:48:25 -04:00
policy_define.h checkpolicy: misc policy_define.c cleanup 2024-03-04 09:55:11 -05:00
policy_parse.y checkpolicy: drop global policyvers variable 2024-05-01 16:48:25 -04:00
policy_scan.l checkpolicy/fuzz: override YY_FATAL_ERROR 2024-04-04 11:17:44 -04:00
queue.c checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
queue.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00