summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2024-09-30 11:22:45 +0900
committerYoungjae Cho <y0.cho@samsung.com>2024-09-30 13:22:48 +0900
commit64a3ba649355101bc204d2a1d4e012bb12605e10 (patch)
tree74ff223771b34d98b029259636b9566b9ea61c55
parent153a4244d86a7b7bad71d3d3e236b3d398f46959 (diff)
downloadsystemd-accepted/tizen_unified.tar.gz
systemd-accepted/tizen_unified.tar.bz2
systemd-accepted/tizen_unified.zip
The movable profile uses its own pid max. Change-Id: I7d046352432cbb769da92d69053ad2a36398d2f4 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r--meson_options.txt2
-rw-r--r--packaging/systemd.spec3
-rw-r--r--sysctl.d/meson.build2
3 files changed, 6 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 59bb1f8bee..4f42a0f306 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -353,3 +353,5 @@ option('fuzzbuzz-engine', type : 'string',
description : 'the name of the FuzzBuzz fuzzing engine')
option('fuzzbuzz-engine-dir', type : 'string',
description : 'the directory where the FuzzBuzz fuzzing engine is')
+option('sysctl-use-pid-max-conf', type : 'boolean', value : 'true',
+ description : 'use sysctl pid-max.conf configuration file')
diff --git a/packaging/systemd.spec b/packaging/systemd.spec
index 45dd3fe36b..933dd128e0 100644
--- a/packaging/systemd.spec
+++ b/packaging/systemd.spec
@@ -239,6 +239,9 @@ cp %{SOURCE8} .
%if 0%{?WITH_SMACK}
-Dsmack-run-label=System::Privileged \
%endif
+%if "%{mv_prj}" == "1"
+ -Dsysctl-use-pid-max-conf=false \
+%endif
-Dinstall-tests=true \
-Ddefault-hierarchy=legacy \
-Db_pie=true
diff --git a/sysctl.d/meson.build b/sysctl.d/meson.build
index 3f072e3db7..2ed9a18f61 100644
--- a/sysctl.d/meson.build
+++ b/sysctl.d/meson.build
@@ -9,7 +9,7 @@ in_files = []
# Kernel determines PID_MAX_LIMIT by
# #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
# (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
-if cc.sizeof('long') > 4
+if cc.sizeof('long') > 4 and get_option('sysctl-use-pid-max-conf')
install_data('50-pid-max.conf', install_dir : sysctldir)
endif