Lines Matching refs:limits
110 def handle_passwd_info(passwd_info, limits):
115 if gid >= int(limits[0]) and gid <= int(limits[1]):
119 log_str = "error: name={} gid={} is not in range {}".format(name, gid, limits)
122 if uid >= int(limits[0]) and uid <= int(limits[1]):
126 log_str = "error: name={} uid={} is not in range {}".format(name, gid, limits)
131 def check_passwd_file(file_name, limits):
143 if not handle_passwd_info(passwd_info, limits):
155 limits = limit.split("-")
157 is_passed = check_passwd_file(file_name, limits)