#ifndef _SEPOL_HANDLE_H_ #define _SEPOL_HANDLE_H_ #include <sys/cdefs.h> __BEGIN_DECLS struct sepol_handle; typedef struct sepol_handle sepol_handle_t; /* Create and return a sepol handle. */ sepol_handle_t *sepol_handle_create(void); /* Get whether or not dontaudits will be disabled, same values as * specified by set_disable_dontaudit. This value reflects the state * your system will be set to upon commit, not necessarily its * current state.*/ int sepol_get_disable_dontaudit(sepol_handle_t * sh); /* Set whether or not to disable dontaudits, 0 is default and does * not disable dontaudits, 1 disables them */ void sepol_set_disable_dontaudit(sepol_handle_t * sh, int disable_dontaudit); /* Set whether module_expand() should consume the base policy passed in. * This should reduce the amount of memory required to expand the policy. */ void sepol_set_expand_consume_base(sepol_handle_t * sh, int consume_base); /* Destroy a sepol handle. */ void sepol_handle_destroy(sepol_handle_t *); /* Get whether or not needless unused branch of tunables would be preserved */ int sepol_get_preserve_tunables(sepol_handle_t * sh); /* Set whether or not to preserve the needless unused branch of tunables, * 0 is default and discard such branch, 1 preserves them */ void sepol_set_preserve_tunables(sepol_handle_t * sh, int preserve_tunables); __END_DECLS #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
cil | Folder | 0755 |
|
|
policydb | Folder | 0755 |
|
|
boolean_record.h | File | 1.5 KB | 0644 |
|
booleans.h | File | 2.17 KB | 0644 |
|
context.h | File | 733 B | 0644 |
|
context_record.h | File | 1.61 KB | 0644 |
|
debug.h | File | 956 B | 0644 |
|
errcodes.h | File | 833 B | 0644 |
|
handle.h | File | 1.34 KB | 0644 |
|
ibendport_record.h | File | 2.11 KB | 0644 |
|
ibendports.h | File | 1.33 KB | 0644 |
|
ibpkey_record.h | File | 2.23 KB | 0644 |
|
ibpkeys.h | File | 1.29 KB | 0644 |
|
iface_record.h | File | 1.78 KB | 0644 |
|
interfaces.h | File | 1.35 KB | 0644 |
|
module.h | File | 2.6 KB | 0644 |
|
module_to_cil.h | File | 329 B | 0644 |
|
node_record.h | File | 2.72 KB | 0644 |
|
nodes.h | File | 1.26 KB | 0644 |
|
policydb.h | File | 4.57 KB | 0644 |
|
port_record.h | File | 1.95 KB | 0644 |
|
ports.h | File | 1.26 KB | 0644 |
|
roles.h | File | 321 B | 0644 |
|
sepol.h | File | 843 B | 0644 |
|
user_record.h | File | 2.31 KB | 0644 |
|
users.h | File | 1.96 KB | 0644 |
|