Lines Matching refs:attr
1150 type_datum_t *attr;
1172 attr = hashtab_search(policydbp->p_types.table, id);
1173 if (!attr) {
1178 if (attr->flavor != TYPE_ATTRIB) {
1183 if (ebitmap_set_bit(&attrs, attr->s.value - 1, TRUE)) {
1204 attr = hashtab_search(policydbp->p_types.table,
1206 attr->flags |= flags;
1207 if ((attr->flags & TYPE_FLAGS_EXPAND_ATTR_TRUE) &&
1208 (attr->flags & TYPE_FLAGS_EXPAND_ATTR_FALSE)) {
1211 attr->flags &= ~TYPE_FLAGS_EXPAND_ATTR_TRUE;
1323 type_datum_t *t, *attr;
1356 attr = hashtab_search(policydbp->p_types.table, id);
1357 if (!attr) {
1364 if (attr->flavor != TYPE_ATTRIB) {
1370 if ((attr = get_local_type(id, attr->s.value, 1)) == NULL) {
1375 if (ebitmap_set_bit(&attr->types, (t->s.value - 1), TRUE)) {
1458 type_datum_t *datum, *attr;
1506 attr = hashtab_search(policydbp->p_types.table, id);
1507 if (!attr) {
1514 if (attr->flavor != TYPE_ATTRIB) {
1520 if ((attr = get_local_type(id, attr->s.value, 1)) == NULL) {
1525 if (ebitmap_set_bit(&attr->types, datum->s.value - 1, TRUE)) {
2749 role_datum_t *r, *attr;
2767 attr = hashtab_search(policydbp->p_roles.table, id);
2768 if (!attr) {
2775 if (attr->flavor != ROLE_ATTRIB) {
2781 if ((attr = get_local_role(id, attr->s.value, 1)) == NULL) {
2786 if (ebitmap_set_bit(&attr->roles, (r->s.value - 1), TRUE)) {
2798 role_datum_t *r, *attr;
2832 attr = hashtab_search(policydbp->p_roles.table, id);
2833 if (!attr) {
2840 if (attr->flavor != ROLE_ATTRIB) {
2846 if ((attr = get_local_role(id, attr->s.value, 1)) == NULL) {
2851 if (ebitmap_set_bit(&attr->roles, (r->s.value - 1), TRUE)) {
3498 newe->attr = e->attr;
3501 if (newe->attr & CEXPR_TYPE) {
3560 if (e->attr & CEXPR_XTARGET) {
3853 expr->attr = arg1;
3858 expr->attr = arg1;
3862 if (expr->attr & CEXPR_USER) {
3881 } else if (expr->attr & CEXPR_ROLE) {
3900 } else if (expr->attr & CEXPR_TYPE) {