[M120 Migration][VD] Remove accessing oom_score_adj in zygote process 97/307497/3
authorjiangyuwei <yuwei.jiang@samsung.com>
Mon, 11 Mar 2024 07:40:22 +0000 (15:40 +0800)
committerDongHyun Song <dh81.song@samsung.com>
Tue, 12 Mar 2024 07:01:41 +0000 (07:01 +0000)
To solve smack error, prevent to access /proc/pid/oom_score_adj in zygote process.
Moreover, even if we write oom_score_adj, kernel have denied it from Tizen2.4 platform.
So it is better to remove accessing it.

Reference:
 - https://review.tizen.org/gerrit/#/c/291135/

Change-Id: Ia22e5f2f8a85585c9a17a172089df9f527be34aa
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
content/browser/child_process_launcher_helper_linux.cc

index 7bd9454..612d5f2 100644 (file)
@@ -97,7 +97,7 @@ ChildProcessLauncherHelper::LaunchProcessOnLauncherThread(
         GetProcessType());
     *launch_result = LAUNCH_RESULT_SUCCESS;
 
-#if !BUILDFLAG(IS_OPENBSD)
+#if !BUILDFLAG(IS_OPENBSD) && !BUILDFLAG(IS_TIZEN_TV)
     if (handle) {
       // It could be a renderer process or an utility process.
       int oom_score = content::kMiscOomScore;