History

Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security

Pull security subsystem updates from James Morris: "Highlights: IMA: - provide ">" and "<" operators for fowner/uid/euid rules KEYS: - add a system blacklist keyring - add KEYCTL_RESTRICT_KEYRING, exposes keyring link restriction functionality to userland via keyctl() LSM: - harden LSM API with __ro_after_init - add prlmit security hook, implement for SELinux - revive security_task_alloc hook TPM: - implement contextual TPM command 'spaces'" * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (98 commits) tpm: Fix reference count to main device tpm_tis: convert to using locality callbacks tpm: fix handling of the TPM 2.0 event logs tpm_crb: remove a cruft constant keys: select CONFIG_CRYPTO when selecting DH / KDF apparmor: Make path_max parameter readonly apparmor: fix parameters so that the permission test is bypassed at boot apparmor: fix invalid reference to index variable of iterator line 836 apparmor: use SHASH_DESC_ON_STACK security/apparmor/lsm.c: set debug messages apparmor: fix boolreturn.cocci warnings Smack: Use GFP_KERNEL for smk_netlbl_mls(). smack: fix double free in smack_parse_opts_str() KEYS: add SP800-56A KDF support for DH KEYS: Keyring asymmetric key restrict method with chaining KEYS: Restrict asymmetric key linkage using a specific keychain KEYS: Add a lookup_restriction function for the asymmetric key type KEYS: Add KEYCTL_RESTRICT_KEYRING KEYS: Consistent ordering for __key_link_begin and restrict check KEYS: Add an optional lookup_restriction hook to key_type ...

Linus Torvalds committed 9 years ago

Commit 0302e282 parents 89c9fea 8979b0295 files · +3240 −1120Browse files

Showing the changes to include/uapi (1 of 95 files). Show all

Unified · Split

include/uapi/linux/keyctl.h+8−0
@@ -60,6 +60,7 @@ · 59 unmodified lines
6060 #define KEYCTL_INVALIDATE 21 /* invalidate a key */
6161 #define KEYCTL_GET_PERSISTENT 22 /* get a user's persistent keyring */
6262 #define KEYCTL_DH_COMPUTE 23 /* Compute Diffie-Hellman values */
63+#define KEYCTL_RESTRICT_KEYRING 29 /* Restrict keys allowed to link to a keyring */
6364
6465 /* keyctl structures */
6566 struct keyctl_dh_params {
@@ -68,4 +69,11 @@ struct keyctl_dh_params { · 2 unmodified lines
6869 __s32 base;
6970 };
7071
72+struct keyctl_kdf_params {
73+ char *hashname;
74+ char *otherinfo;
75+ __u32 otherinfolen;
76+ __u32 __spare[8];
77+};
78+
7179 #endif /* _LINUX_KEYCTL_H */