Lines Matching refs:rtk
2445 struct role_trans_key *rtk = NULL; in policydb_read() local
2621 rtk = kmalloc(sizeof(*rtk), GFP_KERNEL); in policydb_read()
2622 if (!rtk) in policydb_read()
2634 rtk->role = le32_to_cpu(buf[0]); in policydb_read()
2635 rtk->type = le32_to_cpu(buf[1]); in policydb_read()
2641 rtk->tclass = le32_to_cpu(buf[0]); in policydb_read()
2643 rtk->tclass = p->process_class; in policydb_read()
2646 if (!policydb_role_isvalid(p, rtk->role) || in policydb_read()
2647 !policydb_type_isvalid(p, rtk->type) || in policydb_read()
2648 !policydb_class_isvalid(p, rtk->tclass) || in policydb_read()
2652 rc = hashtab_insert(&p->role_tr, rtk, rtd, roletr_key_params); in policydb_read()
2656 rtk = NULL; in policydb_read()
2755 kfree(rtk); in policydb_read()
2876 struct role_trans_key *rtk = key; in role_trans_write_one() local
2884 buf[0] = cpu_to_le32(rtk->role); in role_trans_write_one()
2885 buf[1] = cpu_to_le32(rtk->type); in role_trans_write_one()
2891 buf[0] = cpu_to_le32(rtk->tclass); in role_trans_write_one()