]> git.ipfire.org Git - thirdparty/mkosi.git/commit
tree: Don't copy xattrs to overlayfs if security.selinux is one 3479/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Feb 2025 13:40:36 +0000 (14:40 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Feb 2025 14:25:11 +0000 (15:25 +0100)
commit7d1d11968e3088bdb8a07402e0055559839b3666
tree11a23e3b29e94eff6d03b22d22783f34778002e1
parent72c72b8b89817172c6f376849c96631317c9dd8a
tree: Don't copy xattrs to overlayfs if security.selinux is one

Trying to copy the selinux xattrs to a directory in an overlayfs
filesystem will fail with "Operation not supported". There's no way
to instruct cp to not copy or ignore failures to copy selinux xattrs
so let's instead not try to copy xattrs at all when copying to directories
in overlayfs filesystems and security.selinux is in the list of xattrs.
mkosi/sandbox.py
mkosi/tree.py