diff options
author | Harald Freudenberger <freude@linux.vnet.ibm.com> | 2017-07-11 09:36:23 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-18 18:16:09 +0800 |
commit | 10a515ddb5f19a1ff0b9882c430b4427843169f3 (patch) | |
tree | dd27f8af0c53de1189c738574ff4d702e27e142b /crypto/algif_skcipher.c | |
parent | 2bbb6983887fefc8026beab01198d30f47b7bd22 (diff) | |
download | linux-stable-10a515ddb5f19a1ff0b9882c430b4427843169f3.tar.gz linux-stable-10a515ddb5f19a1ff0b9882c430b4427843169f3.tar.bz2 linux-stable-10a515ddb5f19a1ff0b9882c430b4427843169f3.zip |
hwrng: remember rng chosen by user
When a user chooses a rng source via sysfs attribute
this rng should be sticky, even when other sources
with better quality to register. This patch introduces
a simple way to remember the user's choice. This is
reflected by a new sysfs attribute file 'rng_selected'
which shows if the current rng has been chosen by
userspace. The new attribute file shows '1' for user
selected rng and '0' otherwise.
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algif_skcipher.c')
0 files changed, 0 insertions, 0 deletions