Court accepts Musharraf’s security demand