libsepol, policycoreutils: Move functions to convert a module package to CIL
PATCH v2 1/3 libsepol, policycoreutils: Move functions to convert a module package to CIL
Move code to convert a policy module to CIL from the policy package to CIL conversion tool, pp, in policycoreutils to libsepol and add a "sepol_" prefix to the functions. This code is being changed from GPL to LGPL with permission from Tresys.
Convert pp to use the renamed functions in libsepol.
Signed-off-by James Carter <[email protected]>
--- libsepol/include/sepol/module_to_cil.h | 6 + libsepol/src/module_to_cil.c | 3873 ++++++++++++++++++++++++++++++++ policycoreutils/hll/pp/pp.c | 3830 +------------------------------ 3 files changed, 3882 insertions(+), 3827 deletions(-) create mode 100644 libsepol/include/sepol/module_to_cil.h create mode 100644 libsepol/src/module_to_cil.c
libsepol/include/sepol/module_to_cil.h new file +6 -0
@@ -0,0 +1,6 @@ +#include <stdlib.h> + +#include <sepol/module.h> + +int sepol_module_package_to_cil (FILE *fp,struct sepol_module_package *mod_pkg); +int sepol_ppfile_to_module_package (FILE *fp,struct sepol_module_package **mod_pkg);
libsepol/src/module_to_cil.c new file +3873 -0
2,994 lines not on this page · raw message
policycoreutils/hll/pp/pp.c +3 -3827
3,830 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 2 lines
James Carter <[email protected]> National Security Agency
Part of the diff is not shown here. View the raw message.