예제 #1
0
func (s *mustRunAs) isGroupValid(group int64) bool {
	for _, rng := range s.ranges {
		if psputil.FallsInRange(group, rng) {
			return true
		}
	}
	return false
}
예제 #2
0
func (s *mustRunAs) isValidUID(id int64) bool {
	for _, rng := range s.opts.Ranges {
		if psputil.FallsInRange(id, rng) {
			return true
		}
	}
	return false
}