There are rules, and the fact that the French government break those all the time is no excuse when finally somebody ends up being prosecuted :
http://www.lemonde.fr/societe/article/2014/04/09/squarcini-c...
https://fr.wikipedia.org/wiki/Affaire_des_%C3%A9coutes_de_l%...