A safety is a minor violation of the rules in hockey and soccer.