Lines Matching refs:selinuxuser
1628 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuser() local
1640 cil_selinuxuser_init(&selinuxuser); in cil_gen_selinuxuser()
1642 selinuxuser->name_str = parse_current->next->data; in cil_gen_selinuxuser()
1643 selinuxuser->user_str = parse_current->next->next->data; in cil_gen_selinuxuser()
1646 selinuxuser->range_str = parse_current->next->next->next->data; in cil_gen_selinuxuser()
1648 cil_levelrange_init(&selinuxuser->range); in cil_gen_selinuxuser()
1650 rc = cil_fill_levelrange(parse_current->next->next->next->cl_head, selinuxuser->range); in cil_gen_selinuxuser()
1656 ast_node->data = selinuxuser; in cil_gen_selinuxuser()
1662 cil_destroy_selinuxuser(selinuxuser); in cil_gen_selinuxuser()
1675 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuserdefault() local
1687 cil_selinuxuser_init(&selinuxuser); in cil_gen_selinuxuserdefault()
1689 selinuxuser->name_str = cil_strpool_add("__default__"); in cil_gen_selinuxuserdefault()
1690 selinuxuser->user_str = parse_current->next->data; in cil_gen_selinuxuserdefault()
1693 selinuxuser->range_str = parse_current->next->next->data; in cil_gen_selinuxuserdefault()
1695 cil_levelrange_init(&selinuxuser->range); in cil_gen_selinuxuserdefault()
1697 rc = cil_fill_levelrange(parse_current->next->next->cl_head, selinuxuser->range); in cil_gen_selinuxuserdefault()
1703 ast_node->data = selinuxuser; in cil_gen_selinuxuserdefault()
1709 cil_destroy_selinuxuser(selinuxuser); in cil_gen_selinuxuserdefault()
1713 void cil_destroy_selinuxuser(struct cil_selinuxuser *selinuxuser) in cil_destroy_selinuxuser() argument
1715 if (selinuxuser == NULL) { in cil_destroy_selinuxuser()
1719 if (selinuxuser->range_str == NULL && selinuxuser->range != NULL) { in cil_destroy_selinuxuser()
1720 cil_destroy_levelrange(selinuxuser->range); in cil_destroy_selinuxuser()
1723 free(selinuxuser); in cil_destroy_selinuxuser()