Lines Matching refs:ksec
6521 struct key_security_struct *ksec; in selinux_key_alloc() local
6523 ksec = kzalloc(sizeof(struct key_security_struct), GFP_KERNEL); in selinux_key_alloc()
6524 if (!ksec) in selinux_key_alloc()
6529 ksec->sid = tsec->keycreate_sid; in selinux_key_alloc()
6531 ksec->sid = tsec->sid; in selinux_key_alloc()
6533 k->security = ksec; in selinux_key_alloc()
6539 struct key_security_struct *ksec = k->security; in selinux_key_free() local
6542 kfree(ksec); in selinux_key_free()
6550 struct key_security_struct *ksec; in selinux_key_permission() local
6562 ksec = key->security; in selinux_key_permission()
6565 sid, ksec->sid, SECCLASS_KEY, perm, NULL); in selinux_key_permission()
6570 struct key_security_struct *ksec = key->security; in selinux_key_getsecurity() local
6575 rc = security_sid_to_context(&selinux_state, ksec->sid, in selinux_key_getsecurity()