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