Skip to content

Commit a196bd8

Browse files
authored
Merge pull request #1988 from evgenyz/disable-first-boot-remediation
Disable offline remediation service by default
2 parents c99fc85 + 08c9647 commit a196bd8

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ cmake_dependent_option(ENABLE_OSCAP_UTIL_VM "enables the oscap-vm utility, this
328328
cmake_dependent_option(ENABLE_OSCAP_UTIL_PODMAN "enables the oscap-podman utility, this lets you scan Podman containers and container images" ON "NOT WIN32" OFF)
329329
cmake_dependent_option(ENABLE_OSCAP_UTIL_CHROOT "enables the oscap-chroot utility, this lets you scan entire chroots using offline scanning" ON "NOT WIN32" OFF)
330330
option(ENABLE_OSCAP_UTIL_AUTOTAILOR "enables the autotailor utility that is able to perform command-line tailoring" TRUE)
331-
option(ENABLE_OSCAP_REMEDIATE_SERVICE "enables the oscap-remediate service" TRUE)
331+
option(ENABLE_OSCAP_REMEDIATE_SERVICE "enables the oscap-remediate service" FALSE)
332332

333333
# ---------- TEST-SUITE SWITCHES
334334

@@ -618,7 +618,7 @@ if(NOT WIN32)
618618
configure_file("oscap-remediate.service.in" "oscap-remediate.service" @ONLY)
619619
install(FILES
620620
${CMAKE_CURRENT_BINARY_DIR}/oscap-remediate.service
621-
DESTINATION ${SYSTEMD_UNITDIR}
621+
DESTINATION ${CMAKE_INSTALL_PREFIX}/${SYSTEMD_UNITDIR}
622622
)
623623
endif()
624624
endif()

openscap.spec

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ BuildRequires: glib2-devel
3030
BuildRequires: dbus-devel
3131
BuildRequires: libyaml-devel
3232
BuildRequires: xmlsec1-devel xmlsec1-openssl-devel
33-
BuildRequires: systemd
3433
%if %{?_with_check:1}%{!?_with_check:0}
3534
BuildRequires: perl-XML-XPath
3635
BuildRequires: bzip2
@@ -159,12 +158,6 @@ pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm
159158

160159
%ldconfig_scriptlets
161160

162-
# enable oscap-remediate.service here for now
163-
# https://github.com/hughsie/PackageKit/issues/401
164-
# https://bugzilla.redhat.com/show_bug.cgi?id=1833176
165-
mkdir -p %{buildroot}%{_unitdir}/system-update.target.wants/
166-
ln -sf ../oscap-remediate.service %{buildroot}%{_unitdir}/system-update.target.wants/oscap-remediate.service
167-
168161
%files
169162
%doc AUTHORS NEWS README.md
170163
%license COPYING
@@ -197,9 +190,6 @@ ln -sf ../oscap-remediate.service %{buildroot}%{_unitdir}/system-update.target.w
197190
%{_bindir}/oscap
198191
%{_bindir}/oscap-chroot
199192
%{_sysconfdir}/bash_completion.d
200-
%{_libexecdir}/oscap-remediate
201-
%{_unitdir}/oscap-remediate.service
202-
%{_unitdir}/system-update.target.wants/
203193

204194
%files utils
205195
%doc docs/oscap-scan.cron

0 commit comments

Comments
 (0)