Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Run tests without root privileges #66

Open
xordspar0 opened this issue May 7, 2021 · 0 comments
Open

Run tests without root privileges #66

xordspar0 opened this issue May 7, 2021 · 0 comments

Comments

@xordspar0
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant