I wouldn't put too much reliance on fictional spy stories. I'd bet real intelligence agencies would literally kill to have the kinds of resources the fictional agencies have. Still, it's a tricky business, and today's allies may be tomorrow's enemies, so it only makes sense to keep as much to yourself as you can, while trying to ferret out as many of their secrets as possible.