Lines Matching refs:selinuxuser
1564 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuser() local
1576 cil_selinuxuser_init(&selinuxuser); in cil_gen_selinuxuser()
1578 selinuxuser->name_str = parse_current->next->data; in cil_gen_selinuxuser()
1579 selinuxuser->user_str = parse_current->next->next->data; in cil_gen_selinuxuser()
1582 selinuxuser->range_str = parse_current->next->next->next->data; in cil_gen_selinuxuser()
1584 cil_levelrange_init(&selinuxuser->range); in cil_gen_selinuxuser()
1586 rc = cil_fill_levelrange(parse_current->next->next->next->cl_head, selinuxuser->range); in cil_gen_selinuxuser()
1592 ast_node->data = selinuxuser; in cil_gen_selinuxuser()
1598 cil_destroy_selinuxuser(selinuxuser); in cil_gen_selinuxuser()
1611 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuserdefault() local
1623 cil_selinuxuser_init(&selinuxuser); in cil_gen_selinuxuserdefault()
1625 selinuxuser->name_str = cil_strpool_add("__default__"); in cil_gen_selinuxuserdefault()
1626 selinuxuser->user_str = parse_current->next->data; in cil_gen_selinuxuserdefault()
1629 selinuxuser->range_str = parse_current->next->next->data; in cil_gen_selinuxuserdefault()
1631 cil_levelrange_init(&selinuxuser->range); in cil_gen_selinuxuserdefault()
1633 rc = cil_fill_levelrange(parse_current->next->next->cl_head, selinuxuser->range); in cil_gen_selinuxuserdefault()
1639 ast_node->data = selinuxuser; in cil_gen_selinuxuserdefault()
1645 cil_destroy_selinuxuser(selinuxuser); in cil_gen_selinuxuserdefault()
1649 void cil_destroy_selinuxuser(struct cil_selinuxuser *selinuxuser) in cil_destroy_selinuxuser() argument
1651 if (selinuxuser == NULL) { in cil_destroy_selinuxuser()
1655 if (selinuxuser->range_str == NULL && selinuxuser->range != NULL) { in cil_destroy_selinuxuser()
1656 cil_destroy_levelrange(selinuxuser->range); in cil_destroy_selinuxuser()
1659 free(selinuxuser); in cil_destroy_selinuxuser()