Skip to content

Commit

Permalink
Merge pull request #1770 from dfr/freebsd-unshare
Browse files Browse the repository at this point in the history
pkg/unshare: return true from IsRootless if user is not root
  • Loading branch information
giuseppe committed Dec 11, 2023
2 parents fe00540 + fe74836 commit c3764ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/unshare/unshare_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (

// IsRootless tells us if we are running in rootless mode
func IsRootless() bool {
return false
return os.Getuid() != 0
}

// GetRootlessUID returns the UID of the user in the parent userNS
Expand Down

0 comments on commit c3764ff

Please sign in to comment.