Better legacy support for fakeroot.

https://bugzilla.kernel.org/show_bug.cgi?id=206539
https://bugzilla.suse.com/show_bug.cgi?id=1162014

The fakeroot tool is used by at least SUSE to build packages
and it is used to set file capabilities. The fakeroot system
looks to intercept GLIBC system calls and specifically
/sbin/setcap's operation. The syscall wrapping introduced
to support POSIX semantics is never going to work with
fakeroot since it needs to directly manage syscalls, but
for single threaded programs like setcap we can perform
syscalls through GLIBC.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
1 file changed