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 30, 2015 SELinux security module

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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

V2 fixes some whitespace issues and make the new libsepol file LGPL instead of GPL.

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