It may actually change from code to code and state to state (I've never done work outside Ohio, so I've never read code outside Ohio) according to the current OBC, it's
712.3.2 Membrane penetrations.
Membrane penetrations shall comply with Section 712.3.1 . Where walls or partitions are required to have a fire-resistance rating, recessed fixtures shall be installed such that the required fire resistance will not be reduced.
Exceptions:
1. Membrane penetrations of maximum two-hour fire-resistance-rated walls and partitions by steel electrical boxes that do not exceed 16 square inches (0.0103 m 2 ) in area, provided the aggregate area of the openings through the membrane does not exceed 100 square inches (0.0645 m 2 ) in any 100 square feet (9.29 m 2 ) of wall area. The annular space between the wall membrane and the box shall not exceed 1 / 8 inch (3.1 mm). Such boxes on opposite sides of the wall or partition shall be separated by one of the following:
1.1. By a horizontal distance of not less than 24 inches (610 mm);
1.2. By a horizontal distance of not less than the depth of the wall cavity where the wall cavity is filled with cellulose loose-fill, rockwool or slag mineral wool insulation;
1.3. By solid fireblocking in accordance with Section 717.2.1 ;
1.4. By protecting both boxes with listed putty pads; or
1.5. By other listed materials and methods.
2. Membrane penetrations by listed electrical boxes of any material, provided such boxes have been tested for use in fire-resistance-rated assemblies and are installed in accordance with the instructions included in the listing. The annular space between the wall membrane and the box shall not exceed 1 / 8 inch (3.1 mm) unless listed otherwise. Such boxes on opposite sides of the wall or partition shall be separated as follows:
2.1. By a horizontal distance of not less than 24 inches (610 mm);
2.2. By solid fireblocking in accordance with Section 717.2.1 ;
2.3. By protecting both boxes with listed putty pads; or
2.4 By other listed materials and methods.
3. The annular space created by the penetration of an automatic sprinkler, provided it is covered by a metal escutcheon plate.
and
712.3.1 Through penetrations.
Through penetrations of fire-resistance-rated walls shall comply with Section 712.3.1.1 or 712.3.1.2 .
Exception: Where the penetrating items are steel, ferrous or copper pipes, tubes or conduits, the annular space between the penetrating item and the fire-resistance-rated wall is permitted to be protected as follows:
1. In concrete or masonry walls where the penetrating item is a maximum 6-inch (152 mm) nominal diameter and the area of the opening through the wall does not exceed 144 square inches (0.0929 m 2 ), concrete, grout or mortar is permitted where it is installed the full thickness of the wall or the thickness required to maintain the fire-resistance rating; or
2. The material used to fill the annular space shall prevent the passage of flame and hot gases sufficient to ignite cotton waste when subjected to ASTM E 119 time-temperature fire conditions under a minimum positive pressure differential of 0.01 inch (2.49 Pa) of water at the location of the penetration for the time period equivalent to the fire-resistance rating of the construction penetrated.
So, if you have an architect you work with, it may be worth asking them to look it up in your local building code.