History

[PATCH] selinux: add hooks for key subsystem

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.

Michael LeMay committed 20 years ago

Commit d7200241 parent f893afb16 files · +155 −27Browse files

Showing the changes to security/selinux/include/objsec.h (1 of 16 files). Show all

Unified · Split

security/selinux/include/objsec.h+5−0
@@ -99,6 +99,11 @@ struct sk_security_struct { · 98 unmodified lines
9999 u32 peer_sid; /* SID of peer */
100100 };
101101
102+struct key_security_struct {
103+ struct key *obj; /* back pointer */
104+ u32 sid; /* SID of key */
105+};
106+
102107 extern unsigned int selinux_checkreqprot;
103108
104109 #endif /* _SELINUX_OBJSEC_H_ */