Lines Matching refs:rtk
2408 struct role_trans_key *rtk = NULL;
2580 rtk = kmalloc(sizeof(*rtk), GFP_KERNEL);
2581 if (!rtk)
2593 rtk->role = le32_to_cpu(buf[0]);
2594 rtk->type = le32_to_cpu(buf[1]);
2600 rtk->tclass = le32_to_cpu(buf[0]);
2602 rtk->tclass = p->process_class;
2605 if (!policydb_role_isvalid(p, rtk->role) ||
2606 !policydb_type_isvalid(p, rtk->type) ||
2607 !policydb_class_isvalid(p, rtk->tclass) ||
2611 rc = hashtab_insert(&p->role_tr, rtk, rtd, roletr_key_params);
2615 rtk = NULL;
2713 kfree(rtk);
2834 struct role_trans_key *rtk = key;
2842 buf[0] = cpu_to_le32(rtk->role);
2843 buf[1] = cpu_to_le32(rtk->type);
2849 buf[0] = cpu_to_le32(rtk->tclass);