Thread (15 messages) 15 messages, 4 authors, 2018-01-17

Re: [PATCH v2] crypto: AF_ALG - limit mask and type

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2017-12-22 07:59:00
Also in: lkml

On Fri, Dec 22, 2017 at 08:41:10AM +0100, Stephan Mueller wrote:
Shouldn't we then rather use a white list instead of a black list?
quoted
Most other problems however would be bugs in the template code.
The first thing a template does when it creates an instance is
to check whether the resulting algorithm would fulfil the requested
type/mask using crypto_check_attr_type.  So if that's not working
then we should fix it there as it may also be triggered via other
code paths that can create instances.
I think I understand that, but does user space need to utilize this logic?
I'm open to a white list as well.  But we should certainly fix
the underlying bugs rather than just papering over them as they
could come back via other channels.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help