Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c206b46 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "init: create /dev/urandom, /dev/random in first stage." am: 9baf4e94...

Merge "init: create /dev/urandom, /dev/random in first stage." am: 9baf4e94 am: 344e2b30 am: b9cd3c22
am: b0930538

Change-Id: Ib723f29bc4bf939ab0798e05ebf57e841233f4e6
parents 6e41cd34 b0930538
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -690,6 +690,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();
    }

@@ -740,6 +742,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");