Skip to content

Commit

Permalink
libct/userns: make fuzzer Linux-only, and remove stub for uidMapInUserNS
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thaJeztah committed Jul 24, 2024
1 parent 333fe31 commit bc0de32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build gofuzz
//go:build linux && gofuzz

package userns

Expand Down
6 changes: 0 additions & 6 deletions user/userns/userns_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit bc0de32

Please sign in to comment.