Better legacy support for fakeroot.

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 <>
1 file changed