The stability of grazing bifurcation is lost in three ways through the local analysis of the near-grazing dynamics using the classical concept of discontinuity mappings in the two-degree-of-freedom vibroimpact system with symmetrical constraints. For this instability problem, a control strategy for the stability of grazing bifurcation is presented by controlling the persistence of local attractors near the grazing trajectory in this vibroimpact system with symmetrical constraints. Discrete-in-time feedback controllers designed on two Poincare sections are employed to retain the existence of an attractor near the grazing trajectory. The implementation relies on the stability criterion under which a local attractor persists near a grazing trajectory. Based on the stability criterion, the control region of the two parameters is obtained and the control strategy for the persistence of near-grazing attractors is designed accordingly. Especially, the chaos near codimension-two grazing bifurcation points was controlled by the control strategy. In the end, the results of numerical simulation are used to verify the feasibility of the control method.