diff options
author | Josh Gao <jmgao@google.com> | 2016-09-02 08:39:39 +0000 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-09-02 08:39:39 +0000 |
commit | 4c8a76e250fbc04210cb68324ff167a019591574 (patch) | |
tree | 5d47c30703980bb1c5e14028b9fceedd43c66e70 | |
parent | ab4fbe1b4fe1c7581339e384929851a5e6b944b7 (diff) | |
download | core-4c8a76e250fbc04210cb68324ff167a019591574.tar.gz core-4c8a76e250fbc04210cb68324ff167a019591574.tar.bz2 core-4c8a76e250fbc04210cb68324ff167a019591574.zip |
Revert "init: create /dev/urandom, /dev/random in first stage."
This reverts commit ab4fbe1b4fe1c7581339e384929851a5e6b944b7.
Bug: http://b/31251721
Change-Id: I43e68d1bd819d0f9f7d107865a33ec892975d956
-rw-r--r-- | init/init.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/init/init.cpp b/init/init.cpp index feaee0dbb..957527bd9 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -588,8 +588,6 @@ int main(int argc, char** argv) { mount("sysfs", "/sys", "sysfs", 0, NULL); mount("selinuxfs", "/sys/fs/selinux", "selinuxfs", 0, NULL); mknod("/dev/kmsg", S_IFCHR | 0600, makedev(1, 11)); - mknod("/dev/random", S_IFCHR | 0666, makedev(1, 8)); - mknod("/dev/urandom", S_IFCHR | 0666, makedev(1, 9)); early_mount(); } @@ -640,8 +638,6 @@ int main(int argc, char** argv) { restorecon("/dev"); restorecon("/dev/kmsg"); restorecon("/dev/socket"); - restorecon("/dev/random"); - restorecon("/dev/urandom"); restorecon("/dev/__properties__"); restorecon("/property_contexts"); restorecon_recursive("/sys"); |