Skip to content

Commit

Permalink
use kernel command-line for early entropy
Browse files Browse the repository at this point in the history
Change-Id: I2a8a1c7862deaddc6126b3bf256ccf8c1821cd33
Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
thestinger authored and khusika committed Aug 28, 2018
1 parent 4cce657 commit 36bdb99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ asmlinkage __visible void __init start_kernel(void)
page_address_init();
pr_notice("%s", linux_banner);
setup_arch(&command_line);
add_device_randomness(command_line, strlen(command_line));
/*
* Set up the the initial canary ASAP:
*/
Expand Down

0 comments on commit 36bdb99

Please sign in to comment.