Skip to contentSkip to conversation

libsepol, policycoreutils, and checkpolicy: Add support for generating CIL to libsepol and checkpolicy

PATCH Superseded James Carter 1 participant 1 message Mar 27, 2015 SELinux security module

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

cover libsepol, policycoreutils, and checkpolicy: Add support for generating CIL to libsepol and checkpolicy

This patch set moves the code to generate CIL from pp.c in policycoreutils/hll/pp to libsepol, adds a new function to generate CIL from a module policydb, and modifies checkpolicy and checkmodule to support generating CIL as their output.

The primary motivation of this work is to allow SE for Android to use the CIl compiler. Converting the policy.conf to CIL and then compiling to the kernel binary policy results in a policy that is about 20% smaller. The smaller size is because type expressions with negations are converted to type attribute sets in CIL instead of being expanded.

Signature · 2 lines
James Carter <[email protected]>
National Security Agency