Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 412510 Details for
Bug 561102
sys-kernel/genkernel: mdev creates a device node with incorrect name
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
0001-Add-a-mdev-rule-to-rename-hw_random-to-hwrng.patch (text/plain), 1.45 KB, created by
Göktürk Yüksek
on 2015-09-22 08:09:02 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Göktürk Yüksek
Created:
2015-09-22 08:09:02 UTC
Size:
1.45 KB
patch
obsolete
>From e296d3b4b094d3120619bc6d1417dee6d959474d Mon Sep 17 00:00:00 2001 >From: Gokturk Yuksek <gokturk@binghamton.edu> >Date: Tue, 22 Sep 2015 01:46:55 -0400 >Subject: [PATCH] Add a mdev rule to rename hw_random to hwrng > >When mdev is invoked to populate /dev (mdev -s), it creates the node >for the hardware random number generator (major 10, minor 183) with >the incorrect name. This is because the linux kernel uses 'hw_random' >for the /sys entry and 'hwrng' for the /dev entry. As a result, when >mdev scans /sys/class, it finds the entry >'/sys/class/misc/hw_random/dev' and creates /dev/hw_random. > >When combined with the kernel option 'CONFIG_DEVTMPFS', this results >in having two nodes under /dev (namely 'hw_random' and 'hwrng) that >point to the same device. This currently breaks sys-apps/rng-tools >(#481254). > >The use of 'hw_random' has been obselete for 6 years [1]. Kernel >exposes no mechanism for mdev to figure out the node name >automatically. Utilize 'mdev.conf' to manually rename 'hw_random' to >'hwrng'. > >[1] http://marc.info/?l=linux-crypto-vger&m=144249767024990&w=2 > >Signed-off-by: Gokturk Yuksek <gokturk@binghamton.edu> >--- > mdev/mdev.conf | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/mdev/mdev.conf b/mdev/mdev.conf >index 7bca988..9e8efd0 100644 >--- a/mdev/mdev.conf >+++ b/mdev/mdev.conf >@@ -1,2 +1,3 @@ > sd[a-z].* 0:0 660 @/etc/mdev/helpers/storage-device > vd[a-z].* 0:0 660 @/etc/mdev/helpers/storage-device >+hw_random 0:0 600 =hwrng >-- >2.4.9 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 561102
: 412510