Lines Matching full:sh
9 sepol_handle_t *sh = malloc(sizeof(sepol_handle_t)); in sepol_handle_create() local
10 if (sh == NULL) in sepol_handle_create()
14 sh->msg_callback = sepol_msg_default_handler; in sepol_handle_create()
15 sh->msg_callback_arg = NULL; in sepol_handle_create()
18 sh->disable_dontaudit = 0; in sepol_handle_create()
19 sh->expand_consume_base = 0; in sepol_handle_create()
22 sh->preserve_tunables = 0; in sepol_handle_create()
24 return sh; in sepol_handle_create()
27 int sepol_get_preserve_tunables(sepol_handle_t *sh) in sepol_get_preserve_tunables() argument
29 assert(sh != NULL); in sepol_get_preserve_tunables()
30 return sh->preserve_tunables; in sepol_get_preserve_tunables()
33 void sepol_set_preserve_tunables(sepol_handle_t * sh, int preserve_tunables) in sepol_set_preserve_tunables() argument
35 assert(sh !=NULL); in sepol_set_preserve_tunables()
36 sh->preserve_tunables = preserve_tunables; in sepol_set_preserve_tunables()
39 int sepol_get_disable_dontaudit(sepol_handle_t *sh) in sepol_get_disable_dontaudit() argument
41 assert(sh !=NULL); in sepol_get_disable_dontaudit()
42 return sh->disable_dontaudit; in sepol_get_disable_dontaudit()
45 void sepol_set_disable_dontaudit(sepol_handle_t * sh, int disable_dontaudit) in sepol_set_disable_dontaudit() argument
47 assert(sh !=NULL); in sepol_set_disable_dontaudit()
48 sh->disable_dontaudit = disable_dontaudit; in sepol_set_disable_dontaudit()
51 void sepol_set_expand_consume_base(sepol_handle_t *sh, int consume_base) in sepol_set_expand_consume_base() argument
53 assert(sh != NULL); in sepol_set_expand_consume_base()
54 sh->expand_consume_base = consume_base; in sepol_set_expand_consume_base()
57 void sepol_handle_destroy(sepol_handle_t * sh) in sepol_handle_destroy() argument
59 free(sh); in sepol_handle_destroy()