diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2024-04-05 19:00:55 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2024-04-05 19:13:13 +0900 |
commit | eed98a569b78f04b824110fc9d01b6c6a4047751 (patch) | |
tree | 4bb0afdec72ddb664998d03b55caf5d60fb5e3e4 | |
parent | 27fcee36f95f4a0475b8b5f2e7c08024b942cf95 (diff) | |
download | systemd-accepted/tizen/unified/20240409.135542.tar.gz systemd-accepted/tizen/unified/20240409.135542.tar.bz2 systemd-accepted/tizen/unified/20240409.135542.zip |
packaing: Add WITH_SMACK option to switch smack featureaccepted/tizen/unified/x/20240411.011812accepted/tizen/unified/20240409.155850accepted/tizen/unified/20240409.135542
Add WITH_SMACK option to switch smack feature during compile time.
- If WITH_SMACK is 1, systemd requires SMACK feature for security.
- If WITH_SMACK is 0, systemd doesn't require SMACK feature.
Change-Id: If4a4a6f24d9f34b4cb44b28324341d46f2193d9f
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r-- | packaging/systemd.spec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/systemd.spec b/packaging/systemd.spec index 073ff31234..fd3ad0f041 100644 --- a/packaging/systemd.spec +++ b/packaging/systemd.spec @@ -13,6 +13,7 @@ %define WITH_DOC 0 %define WITH_HOSTNAMED 0 %define WITH_VIRT 1 +%define WITH_SMACK 1 %define build_dir _build %define dbuspolicydir %{_datadir}/dbus-1 @@ -182,6 +183,9 @@ cp %{SOURCE8} . %define _vpath_builddir %{build_dir} %meson \ -Dkdbus=true \ +%if ! 0%{?WITH_SMACK} + -Dsmack=false \ +%endif %if ! 0%{?WITH_VIRT} -Dvirt=false \ %endif @@ -228,7 +232,9 @@ cp %{SOURCE8} . -Drpmmacrosdir=%{_sysconfdir}/rpm/ \ -Dsysvinit-path="" \ -Dsysvrcnd-path="" \ +%if 0%{?WITH_SMACK} -Dsmack-run-label=System::Privileged \ +%endif -Dinstall-tests=true \ -Ddefault-hierarchy=legacy \ -Db_pie=true |