Merge "init: create /dev/urandom, /dev/random in first stage." am: 9baf4e94fa
am: 344e2b307b
Change-Id: I45b306d232fd2e73eb9673b1997fb44fd1d20982
This commit is contained in:
commit
b9cd3c2213
1 changed files with 4 additions and 0 deletions
|
|
@ -588,6 +588,8 @@ 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();
|
||||
}
|
||||
|
||||
|
|
@ -638,6 +640,8 @@ 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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue