From 8e8e7c6073bbf9472c6e63ff246ad34f308403c8 Mon Sep 17 00:00:00 2001 From: happy_orange Date: Mon, 13 Mar 2023 14:50:30 +0800 Subject: [PATCH] do not remove auditctl --- ...auditctl-which-is-needed-by-anaconda.patch | 25 +++++++++++++++++++ lorax-templates-anolis.spec | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 1006-not-delete-auditctl-which-is-needed-by-anaconda.patch diff --git a/1006-not-delete-auditctl-which-is-needed-by-anaconda.patch b/1006-not-delete-auditctl-which-is-needed-by-anaconda.patch new file mode 100644 index 0000000..05399bb --- /dev/null +++ b/1006-not-delete-auditctl-which-is-needed-by-anaconda.patch @@ -0,0 +1,25 @@ +From e11d6be7d7203be21fc2548bc339f0ad2cfe675d Mon Sep 17 00:00:00 2001 +From: happy_orange +Date: Mon, 13 Mar 2023 14:33:53 +0800 +Subject: [PATCH 1/1] not delete auditctl + +--- + 80-anolis/runtime-cleanup.tmpl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/80-anolis/runtime-cleanup.tmpl b/80-anolis/runtime-cleanup.tmpl +index 4bb50c0..e5d9067 100644 +--- a/80-anolis/runtime-cleanup.tmpl ++++ b/80-anolis/runtime-cleanup.tmpl +@@ -117,7 +117,7 @@ removefrom gsettings-desktop-schemas /usr/share/locale/* + removefrom NetworkManager-libnm /usr/share/locale/*/NetworkManager.mo + removefrom nm-connection-editor /usr/share/applications/* + removefrom atk /usr/share/locale/* +-removefrom audit /etc/* /usr/sbin/auditctl /usr/sbin/aureport ++removefrom audit /etc/* /usr/sbin/aureport + removefrom audit /usr/sbin/ausearch /usr/sbin/autrace /usr/bin/* + removefrom audit-libs /etc/* + removefrom bash /etc/* /usr/bin/bashbug* /usr/share/* +-- +2.31.1 + diff --git a/lorax-templates-anolis.spec b/lorax-templates-anolis.spec index a7d7ecf..ab02e53 100644 --- a/lorax-templates-anolis.spec +++ b/lorax-templates-anolis.spec @@ -1,4 +1,5 @@ -%define anolis_release 4 +%define anolis_release 5 + Name: lorax-templates-anolis Version: 37.0 Release: 1.%{anolis_release}%{?dist} @@ -15,6 +16,7 @@ Patch1002: 1002-add-uefi-parameter.patch Patch1003: 1003-Do-not-remove-avahi-glib-avahi-libs.patch Patch1004: 1004-do-not-move-usr-libexec-anaconda-auditd.patch Patch1005: 1005-do-not-remove-libauparse.so.0-which-is-needed-by-aud.patch +Patch1006: 1006-not-delete-auditctl-which-is-needed-by-anaconda.patch # Where are these supposed to end up? %define templatedir %{_datadir}/lorax/templates.d/80-anolis @@ -39,6 +41,9 @@ cp -a 80-anolis/* $RPM_BUILD_ROOT/%{templatedir} %{templatedir}/* %changelog +* Mon Mar 13 2023 happy_orange - 37.0-1.5 +- do not remove auditctl which is needed by anaconda + * Mon Feb 20 2023 Chunmei Xu - 37.0-1.4 - do not remove libauparse.so.0 which is needed by auditd -- Gitee