From 27cb41035264e5ff299a5784dc6ca60e791347d2 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Fri, 22 Jan 2016 18:02:29 -0800 Subject: [PATCH] init.rc: mix device-specific data into the Linux RNG Mix the contents of /proc/cmdline and /default.prop into /dev/urandom. /proc/cmdline often contains androidboot.serialno, a device-specific unique identifier. Similarly, /default.prop contains the build fingerprint and timestamp, which vary between device families. Change-Id: I8803b38c7089b2a1217b99a7c1808b29a3b138cf --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index d322402e4..e400c85c7 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -28,6 +28,10 @@ on early-init on init sysclktz 0 + # Mix device-specific information into the entropy pool + copy /proc/cmdline /dev/urandom + copy /default.prop /dev/urandom + # Backward compatibility. symlink /system/etc /etc symlink /sys/kernel/debug /d