The present invention provides a curable coating composition comprising at least one linear or cyclic polysiloxane containing at least one quaternary ammonium group, a process for producing the aforesaid coating composition, and a process for producing a coating with the curable coating composition, and also the coatings and coating compositions themselves that are obtainable by the processes described.