What makes software open source?
The Open Source Initiative (OSI) is clear that open source does not just mean access to the source code. The distribution terms have to meet the criteria in its Open Source Definition [1]. There are ten of them, including free redistribution, availability of source code, permission for derived works, and no discrimination against persons, groups or fields of endeavour [1].
Under the first criterion, a licence cannot stop anyone from selling or giving away the software, even bundled with programs from other sources, and cannot demand a royalty for doing so [1]. The second requires the program to include source code and to allow distribution in both source and compiled form. Deliberately obfuscated source code does not count [1].
How does a licence become open source?
Licences approved by the OSI allow software to be freely used, modified and shared [2]. A licence earns that approval only after going through the OSI's licence review process [2]. The MIT License, the Apache License 2.0 and versions 2 and 3 of the GNU General Public License are familiar examples on the list [2].
Is visible source code enough?
No. Software whose code anyone can read, but whose licence forbids selling it, changing it or using it in certain fields, fails the definition [1]. Take a program published with its full source under a licence that bans commercial use: it breaks the rule against discriminating between fields of endeavour, so it is not open source [1].