Introduce SELinux hooks to support the access key retention subsystem within the kernel. Incorporate new flask headers from a modified version of the SELinux reference policy, with support for the new security class representing retained keys. Extend the "key_alloc" security hook with a task parameter representing the intended ownership context for the key being allocated. Attach security information to root's default keyrings within the SELinux initialization routine. Has passed David's testsuite.
Showing the changes to security/selinux/include/objsec.h (1 of 16 files). Show all
Unified · Split
| @@ -99,6 +99,11 @@ struct sk_security_struct { · 98 unmodified lines | ||
| 99 | 99 | u32 peer_sid; /* SID of peer */ |
| 100 | 100 | }; |
| 101 | 101 | |
| 102 | +struct key_security_struct { | |
| 103 | + struct key *obj; /* back pointer */ | |
| 104 | + u32 sid; /* SID of key */ | |
| 105 | +}; | |
| 106 | + | |
| 102 | 107 | extern unsigned int selinux_checkreqprot; |
| 103 | 108 | |
| 104 | 109 | #endif /* _SELINUX_OBJSEC_H_ */ |