Lines Matching refs:rtk
2399 struct role_trans_key *rtk = NULL; in policydb_read() local
2571 rtk = kmalloc(sizeof(*rtk), GFP_KERNEL); in policydb_read()
2572 if (!rtk) in policydb_read()
2584 rtk->role = le32_to_cpu(buf[0]); in policydb_read()
2585 rtk->type = le32_to_cpu(buf[1]); in policydb_read()
2591 rtk->tclass = le32_to_cpu(buf[0]); in policydb_read()
2593 rtk->tclass = p->process_class; in policydb_read()
2596 if (!policydb_role_isvalid(p, rtk->role) || in policydb_read()
2597 !policydb_type_isvalid(p, rtk->type) || in policydb_read()
2598 !policydb_class_isvalid(p, rtk->tclass) || in policydb_read()
2602 rc = hashtab_insert(&p->role_tr, rtk, rtd, roletr_key_params); in policydb_read()
2606 rtk = NULL; in policydb_read()
2704 kfree(rtk); in policydb_read()
2825 struct role_trans_key *rtk = key; in role_trans_write_one() local
2833 buf[0] = cpu_to_le32(rtk->role); in role_trans_write_one()
2834 buf[1] = cpu_to_le32(rtk->type); in role_trans_write_one()
2840 buf[0] = cpu_to_le32(rtk->tclass); in role_trans_write_one()