Imprison Possessor

Abjuration
Level: Demonologist 4, Sor/Wiz 5
Components: V, S
Casting Time: 1 action
Range: Close (25 ft. + 5 ft./2 levels)
Target: One possessing creature and its host
Duration: Permanent (D)
Saving Throw:Will negates
Spell Resistance: Yes

The caster traps one creature that can possess or inhabit other creatures, or one that can move its mind out of its body, within the creature it currently inhabits. Potential targets include possessing demons, malevolent ghosts, and a caster currently using a magic jar spell. The possessing creature cannot leave the body it is currently in, whether or not it is its own, by any means.