Ceiling openings are required for chimneys and attic access which may require cutting joists. Building codes state that any framing should be 2 inches from the front and sides of openings. Building codes also state that framing should be 2 inches from masonry fireplaces and 4 inches from the back of fireplaces.