diff --git a/0002-dont-skip-security.evm-when-copy-xattr.patch b/0002-dont-skip-security.evm-when-copy-xattr.patch new file mode 100644 index 0000000000000000000000000000000000000000..c0ce82b315f06793108d7f3fbf13e9df58babf68 --- /dev/null +++ b/0002-dont-skip-security.evm-when-copy-xattr.patch @@ -0,0 +1,27 @@ +From 0aa9a1568fc318345c4123fc19f825933f8dcb66 Mon Sep 17 00:00:00 2001 +From: zhangtianxing3 +Date: Mon, 24 Jan 2022 11:39:36 +0800 +Subject: [PATCH] dont skip security.evm when copy xattr + +IMA feature need to use security.evm, so we should not skip + +Signed-off-by: lixiaokeng +Signed-off-by: volcanodragon +--- + xattr.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xattr.conf b/xattr.conf +index 1affac5..07d3403 100644 +--- a/xattr.conf ++++ b/xattr.conf +@@ -18,5 +18,5 @@ trusted.SGI_DMI_* skip # xfs specific + trusted.SGI_MAC_FILE skip # xfs specific + xfsroot.* skip # xfs specific; obsolete + user.Beagle.* skip # ignore Beagle index data +-security.evm skip # may only be written by kernel ++#security.evm skip # may only be written by kernel + afs.* skip # AFS metadata and ACLs +-- +1.8.3.1 + diff --git a/attr.spec b/attr.spec index 8f9d591a970dc5d32c436209e43d51b785f0db0d..ab96d466373ea33277a4d2f02f9271dc2d39a71f 100644 --- a/attr.spec +++ b/attr.spec @@ -1,7 +1,7 @@ %{!?_licensedir:%global license %%doc} Name: attr Version: 2.5.1 -Release: 1 +Release: 2 Summary: Commands for Manipulating Filesystem Extended Attributes License: GPLv2+ AND LGPLv2+ URL: https://savannah.nongnu.org/projects/attr @@ -9,6 +9,7 @@ Source0: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}. # fix test-suite failure with perl-5.26.0 (#1473853) Patch1: 0001-bypass-wrong-output-when-enabled-selinux.patch +Patch2: 0002-dont-skip-security.evm-when-copy-xattr.patch BuildRequires: gettext, libtool, chrpath, gcc, Provides: libattr @@ -95,6 +96,9 @@ fi %{_mandir}/man3/* %changelog +* Mon Jan 24 2022 volcanodragon - 2.5.1-2 +- dont skip security.evm copy for ima + * Tue Nov 16 2021 Wenchao Hao - 2.5.1-1 - Update to attr-2.5.1