Home | History | Annotate | Download | only in src

Lines Matching defs:selinuxuser

1536 	struct cil_selinuxuser *selinuxuser = NULL;
1548 cil_selinuxuser_init(&selinuxuser);
1550 selinuxuser->name_str = parse_current->next->data;
1551 selinuxuser->user_str = parse_current->next->next->data;
1554 selinuxuser->range_str = parse_current->next->next->next->data;
1556 cil_levelrange_init(&selinuxuser->range);
1558 rc = cil_fill_levelrange(parse_current->next->next->next->cl_head, selinuxuser->range);
1564 ast_node->data = selinuxuser;
1569 cil_log(CIL_ERR, "Bad selinuxuser declaration at line %d of %s\n",
1571 cil_destroy_selinuxuser(selinuxuser);
1584 struct cil_selinuxuser *selinuxuser = NULL;
1596 cil_selinuxuser_init(&selinuxuser);
1598 selinuxuser->name_str = cil_strpool_add("__default__");
1599 selinuxuser->user_str = parse_current->next->data;
1602 selinuxuser->range_str = parse_current->next->next->data;
1604 cil_levelrange_init(&selinuxuser->range);
1606 rc = cil_fill_levelrange(parse_current->next->next->cl_head, selinuxuser->range);
1612 ast_node->data = selinuxuser;
1619 cil_destroy_selinuxuser(selinuxuser);
1623 void cil_destroy_selinuxuser(struct cil_selinuxuser *selinuxuser)
1625 if (selinuxuser == NULL) {
1629 if (selinuxuser->range_str == NULL && selinuxuser->range != NULL) {
1630 cil_destroy_levelrange(selinuxuser->range);
1633 free(selinuxuser);