make check issues with attr and acl builds on lfs 12.3

"brian naasz" ([email protected] via lfs-support Mailing List) <[email protected]> Wed, 19 Mar 2025 23:07:50 -0500
Newsgroups gmane.linux.lfs.support
Message-ID <CAJPLjgmy9HG2sAamaHwamAo01_34c7GRkLKLnBLcw+9dnWBDAA@mail.gmail.com>
People,

I am building LFS on a Fedora 41 VM, in permissive mode, and hit a
weird SeLinux
 complication with the 'make check' stage for both the 'attr-2.5.2' and
'acl-2.3.2' packages.

To prevent somebody from spending a few hours running down rabbit holes
like I did
here is what is wrong and what I believe the fix is.

The test scripts for the two packages assume they are the _only_ creator of
attribute
namespaces for their files and start generating false errors when the
'security.selinux="...."` lines appear.

It boils down to the scripts running:

    getfattr -m- -RLhd .

when they should be checking only for the namespace(s) they set::

    getfattr -m '^(user|trusted).test' -RLhd .

Simple fix really.

Brian

--
The goal is to learn enough that you realize you do not know enough.  Then
wisdom starts.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page