Channing Tatum has been granted a restraining order against a woman who broke into one of his houses and spent 10 days there.