dnsname icon indicating copy to clipboard operation
dnsname copied to clipboard

Run tests without root privileges

Open xordspar0 opened this issue 3 years ago • 0 comments

I maintain a community package for dnsname in Alpine Linux. Alpine prefers to run the testing suite on every package when it gets built, but running as root is not allowed. Is there any way to make it possible to run the tests without root?

I tried using fakeroot, but that works by injecting alternate dynamic libraries with LD_PRELOAD. Since Go implements its own interface over the system calls and statically links it, fakeroot doesn't work. Also, it looks like root is needed for controlling mounts, and I'm not sure that fakeroot allows that anyway.

xordspar0 avatar May 07 '21 15:05 xordspar0