mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-23 22:42:06 +00:00
4514332550
Add a new function, sepol_module_policydb_to_cil, that generates CIL from a module (not kernel) policydb. Refactor sepol_module_package_to_cil() to use the new function. Signed-off-by: James Carter <jwcart2@tycho.nsa.gov>
9 lines
329 B
C
9 lines
329 B
C
#include <stdlib.h>
|
|
|
|
#include <sepol/module.h>
|
|
#include <sepol/policydb/policydb.h>
|
|
|
|
int sepol_module_policydb_to_cil(FILE *fp, struct policydb *pdb, int linked);
|
|
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);
|