← Back to team overview

kernel-packages team mailing list archive

[Bug 1558275] Comment bridged from LTC Bugzilla


------- Comment From brueckner@xxxxxxxxxx 2016-04-05 06:56 EDT-------
Please backport upstream commit:

commit 74b2375e6767935e6d9220bdbc6ed0db57f71a59
Author: Harald Freudenberger <freude@xxxxxxxxxxxxxxxxxx>
Date:   Thu Mar 17 14:52:17 2016 +0100

s390/crypto: provide correct file mode at device register.
When the prng device driver calls misc_register() there is the possibility
to also provide the recommented file permissions. This fix now gives
useful values (0644) where previously just the default was used (resulting
in 0600 for the device file).
Signed-off-by: Harald Freudenberger <freude@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

arch/s390/crypto/prng.c | 2 ++
1 file changed, 2 insertions(+)

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  wrong/missing permissions for device file /dev/prandom (prng.ko)

Status in linux package in Ubuntu:
Status in s390-tools package in Ubuntu:
Status in systemd package in Ubuntu:

Bug description:
  The access rights for /dev/prandom are set to 0600. The prandom file
  is created upon loading the prng module.

  The access rights are set to 0644.

  root@s83lp22:~# modinfo prng
  filename:       /lib/modules/4.4.0-13-generic/kernel/arch/s390/crypto/prng.ko
  description:    s390 PRNG interface
  author:         IBM Corporation
  license:        GPL
  srcversion:     B48774F4AEBAE6DB4983C98
  alias:          cpu:type:*:feature:*0003*
  intree:         Y
  vermagic:       4.4.0-13-generic SMP mod_unload modversions
  parm:           mode:int
  parm:           prng_mode:PRNG mode: 0 - auto, 1 - TDES, 2 - SHA512
  parm:           chunksize:int
  parm:           prng_chunk_size:PRNG read chunk size in bytes
  parm:           reseed_limit:int
  parm:           prng_reseed_limit:PRNG reseed limit
  Contact Information = Christian.Rund@xxxxxxxxxx 
  ---uname output---
  Linux s83lp22 4.4.0-13-generic #29-Ubuntu SMP Fri Mar 11 19:30:41 UTC 2016 s390x s390x s390x GNU/Linux
  Machine Type = Manufacturer:   IBM Type: 2964 Model:      702      N96 
  ---Steps to Reproduce---
   1) modprobe prng
  2) ls -l /dev/prandom

  This is a s390x issue.

To manage notifications about this bug go to: