sepol_genbools(3) - Linux man page
Name
sepol_genbools - Rewrite a binary policy with different boolean settingsSynopsis
#include <sepol/sepol.h>int sepol_genbools(void *data, size_t len, char *boolpath);
int sepol_genbools_array(void *data, size_t len, char **names, int *values, int
nel);
Description
sepol_genbools rewrites a binary policy stored in the memory region described by (data, len) to use the boolean settings specified in the file named by boolpath. The boolean settings are specified by name=value lines where value may be 0 or false to disable or 1 or true to enable. The binary policy is rewritten in place in memory.sepol_genbools_array does likewise, but obtains the boolean settings from the parallel arrays (names, values) with nel elements each.