libct/userns: make fuzzer Linux-only, and remove stub for uidMapInUserNS

The fuzzer for this only runs on Linux; rename the file to be Linux-only
so that we don't have to stub out the uidMapInUserNS function.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-29 18:08:44 +02:00
parent 5b09a71228
commit b3b31ff27c
2 changed files with 1 additions and 7 deletions
@@ -1,4 +1,4 @@
//go:build gofuzz
//go:build linux && gofuzz
package userns
@@ -7,9 +7,3 @@ package userns
func runningInUserNS() bool {
return false
}
// uidMapInUserNS is a stub for non-Linux systems
// Always returns false
func uidMapInUserNS(uidMap string) bool {
return false
}