mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Kernel: Allow process creation during low-entropy condition
Fixes #2871. Ignoring the 'securely generated bytes' constraint seems to be fine for Linux, so it's probably fine for Serenity. Note that there *might* be more bottlenecks down the road if Serenity is started in a non-GUI way. Currently though, loading the GUI seems to generate enough interrupts to seed the entropy pool, even on my non-RDRAND setup. Yay! :^)
This commit is contained in:
parent
8c14219fb1
commit
b3472cb4a7
Notes:
sideshowbarker
2024-07-19 04:38:18 +09:00
Author: https://github.com/BenWiederhake
Commit: b3472cb4a7
Pull-request: https://github.com/SerenityOS/serenity/pull/2872
Issue: https://github.com/SerenityOS/serenity/issues/2871
1 changed files with 1 additions and 1 deletions
|
@ -1118,7 +1118,7 @@ Vector<AuxiliaryValue> Process::generate_auxiliary_vector() const
|
|||
auxv.append({ AuxiliaryValue::Secure, ((m_uid != m_euid) || (m_gid != m_egid)) ? 1 : 0 });
|
||||
|
||||
char random_bytes[16] {};
|
||||
get_good_random_bytes((u8*)random_bytes, sizeof(random_bytes));
|
||||
get_fast_random_bytes((u8*)random_bytes, sizeof(random_bytes));
|
||||
|
||||
auxv.append({ AuxiliaryValue::Random, String(random_bytes, sizeof(random_bytes)) });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue