Lines Matching refs:rtk
2405 struct role_trans_key *rtk = NULL;
2577 rtk = kmalloc(sizeof(*rtk), GFP_KERNEL);
2578 if (!rtk)
2591 rtk->role = le32_to_cpu(buf[0]);
2592 rtk->type = le32_to_cpu(buf[1]);
2598 rtk->tclass = le32_to_cpu(buf[0]);
2600 rtk->tclass = p->process_class;
2603 if (!policydb_role_isvalid(p, rtk->role) ||
2604 !policydb_type_isvalid(p, rtk->type) ||
2605 !policydb_class_isvalid(p, rtk->tclass) ||
2609 rc = hashtab_insert(&p->role_tr, rtk, rtd, roletr_key_params);
2613 rtk = NULL;
2711 kfree(rtk);
2832 struct role_trans_key *rtk = key;
2840 buf[0] = cpu_to_le32(rtk->role);
2841 buf[1] = cpu_to_le32(rtk->type);
2847 buf[0] = cpu_to_le32(rtk->tclass);