Loading init/init.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -630,6 +630,11 @@ int SecondStageMain(int argc, char** argv) { InitKernelLogging(argv, InitAborter); LOG(INFO) << "init second stage started!"; // Set init and its forked children's oom_adj. if (auto result = WriteFile("/proc/1/oom_score_adj", "-1000"); !result) { LOG(ERROR) << "Unable to write -1000 to /proc/1/oom_score_adj: " << result.error(); } // Enable seccomp if global boot option was passed (otherwise it is enabled in zygote). GlobalSeccomp(); Loading rootdir/init.rc +0 −3 Original line number Diff line number Diff line Loading @@ -13,9 +13,6 @@ import /init.${ro.zygote}.rc # Cgroups are mounted right before early-init using list from /etc/cgroups.json on early-init # Set init and its forked children's oom_adj. write /proc/1/oom_score_adj -1000 # Disable sysrq from keyboard write /proc/sys/kernel/sysrq 0 Loading Loading
init/init.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -630,6 +630,11 @@ int SecondStageMain(int argc, char** argv) { InitKernelLogging(argv, InitAborter); LOG(INFO) << "init second stage started!"; // Set init and its forked children's oom_adj. if (auto result = WriteFile("/proc/1/oom_score_adj", "-1000"); !result) { LOG(ERROR) << "Unable to write -1000 to /proc/1/oom_score_adj: " << result.error(); } // Enable seccomp if global boot option was passed (otherwise it is enabled in zygote). GlobalSeccomp(); Loading
rootdir/init.rc +0 −3 Original line number Diff line number Diff line Loading @@ -13,9 +13,6 @@ import /init.${ro.zygote}.rc # Cgroups are mounted right before early-init using list from /etc/cgroups.json on early-init # Set init and its forked children's oom_adj. write /proc/1/oom_score_adj -1000 # Disable sysrq from keyboard write /proc/sys/kernel/sysrq 0 Loading