Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fips): remove /dev/{random,urandom} pre-creation #85

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

pvalena
Copy link
Contributor

@pvalena pvalena commented Jun 12, 2024

Random device nodes were required to workaround libgcrypt initialization
problem (see https://bugzilla.redhat.com/show_bug.cgi?id=1401444) which
is gone since libgcrypt-1.10 (2022): modern Linux kernels (3.17+) support
getrandom() syscall and libgcrypt has switch to using getentropy()
(glibc-2.25+).

The requirement to run dracut as root (which is needed to mknod
/dev/{random,urandom}) is a particular problem for building UKIs in distro
build systems where packages are not built by a privileged user.

Note, dracut itself always pre-creates /dev/{null,kmsg,console,random,urandom}
devices when running privileged so the patch has no effect on 'traditional'
setup.

Signed-off-by: Vitaly Kuznetsov [email protected]

(Cherry-picked commit: 62f907e9eb3147ad8603953ec3cf29673d4fae79)

Resolves: RHEL-38830

Random device nodes were required to workaround libgcrypt initialization
problem (see https://bugzilla.redhat.com/show_bug.cgi?id=1401444) which
is gone since libgcrypt-1.10 (2022): modern Linux kernels (3.17+) support
getrandom() syscall and libgcrypt has switch to using getentropy()
(glibc-2.25+).

The requirement to run dracut as root (which is needed to mknod
/dev/{random,urandom}) is a particular problem for building UKIs in distro
build systems where packages are not built by a privileged user.

Note, dracut itself always pre-creates /dev/{null,kmsg,console,random,urandom}
devices when running privileged so the patch has no effect on 'traditional'
setup.

Signed-off-by: Vitaly Kuznetsov <[email protected]>

(Cherry-picked commit: 62f907e9eb3147ad8603953ec3cf29673d4fae79)

Resolves: RHEL-38830
@pvalena pvalena added the bug Something isn't working label Jun 12, 2024
@pvalena pvalena self-assigned this Jun 12, 2024
@pvalena
Copy link
Contributor Author

pvalena commented Jul 16, 2024

LGTM.

@pvalena pvalena merged commit 55108a3 into redhat-plumbers:main Jul 16, 2024
41 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants