Package: fakeroot
Version: 1.20.2

Originally reported in Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=1238802 .

Description of problem:
The update of fakeroot has added extended attribute support, but AFAICS
it is purely simulated in memory, not even initialized with the
system-wide state.

In particular, *getxattr(…, "security.selinux", …) fails with ENODATA

This breaks testing of code which attempts to preserve SELinux context
when copying files.

Steps to Reproduce:
1. getfattr -m - -d .
2. fakeroot getfattr -m - -d .

Actual results:
> # file: .
> security.selinux="unconfined_u:object_r:user_home_t:s0"
and
(empty output)

Expected results:
> # file: .
> security.selinux="unconfined_u:object_r:user_home_t:s0"
and
> # file: .
> security.selinux="unconfined_u:object_r:user_home_t:s0"

Reply via email to