Lines Matching refs:ksec
6593 struct key_security_struct *ksec; in selinux_key_alloc() local
6595 ksec = kzalloc(sizeof(struct key_security_struct), GFP_KERNEL); in selinux_key_alloc()
6596 if (!ksec) in selinux_key_alloc()
6601 ksec->sid = tsec->keycreate_sid; in selinux_key_alloc()
6603 ksec->sid = tsec->sid; in selinux_key_alloc()
6605 k->security = ksec; in selinux_key_alloc()
6611 struct key_security_struct *ksec = k->security; in selinux_key_free() local
6614 kfree(ksec); in selinux_key_free()
6622 struct key_security_struct *ksec; in selinux_key_permission() local
6657 ksec = key->security; in selinux_key_permission()
6660 sid, ksec->sid, SECCLASS_KEY, perm, NULL); in selinux_key_permission()
6665 struct key_security_struct *ksec = key->security; in selinux_key_getsecurity() local
6670 rc = security_sid_to_context(&selinux_state, ksec->sid, in selinux_key_getsecurity()
6681 struct key_security_struct *ksec = key->security; in selinux_watch_key() local
6685 sid, ksec->sid, SECCLASS_KEY, KEY__VIEW, NULL); in selinux_watch_key()