The problem of integrated fault diagnostic and fault-tolerant control for uncertainty linear system is developed. Focusing on the actuator and sensor faults of satellite, we presents a fault diagnosis method based on sliding mode observer. And considering the uncertainties of diagnosis results, we also design a Hinfin state-feedback controller to achieve the fault-tolerance by solving a linear matrix inequality (LMI). At last, the simulation for a satellite attitude control system with actuator and sensor faults is carried out and the results validate the effectivity of this algorithm.