In Aladdin, the Genie is a slave to whoever holds the "magic" lamp he's held captive in (and has been for centuries on end).