Home
last modified time | relevance | path

Searched hist:c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/crypto/asymmetric_keys/
H A Dpkcs7_key_type.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
H A Dasymmetric_type.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
/openbmc/linux/include/keys/
H A Duser-type.hdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
/openbmc/linux/include/linux/
H A Dkey-type.hdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
/openbmc/linux/security/keys/
H A Dbig_key.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
H A Dgc.cdiff c1644fe041ebaf6519f6809146a77c3ead9193af Tue Apr 18 09:31:08 CDT 2017 David Howells <dhowells@redhat.com> KEYS: Change the name of the dead type to ".dead" to prevent user access

This fixes CVE-2017-6951.

Userspace should not be able to do things with the "dead" key type as it
doesn't have some of the helper functions set upon it that the kernel
needs. Attempting to use it may cause the kernel to crash.

Fix this by changing the name of the type to ".dead" so that it's rejected
up front on userspace syscalls by key_get_type_from_user().

Though this doesn't seem to affect recent kernels, it does affect older
ones, certainly those prior to:

commit c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81
Author: David Howells <dhowells@redhat.com>
Date: Tue Sep 16 17:36:06 2014 +0100
KEYS: Remove key_type::match in favour of overriding default by match_preparse

which went in before 3.18-rc1.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: stable@vger.kernel.org
H A Drequest_key_auth.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
H A Duser_defined.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
H A Drequest_key.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
H A Dinternal.hdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
H A Dkey.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
H A Dkeyring.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
/openbmc/linux/net/ceph/
H A Dcrypto.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
/openbmc/linux/security/keys/encrypted-keys/
H A Dencrypted.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
/openbmc/linux/net/dns_resolver/
H A Ddns_key.cdiff c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 Tue Sep 16 11:36:06 CDT 2014 David Howells <dhowells@redhat.com> KEYS: Remove key_type::match in favour of overriding default by match_preparse

A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.

The key_type::match op is then redundant and can be removed, as can the
user_match() function.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>