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