GPLv3 Fundamentals: Copyleft, Source Obligations, Patents and Anti-Tivoization
Company: Canonical
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
What is the GNU General Public License, version 3 (GPLv3), and what are its defining characteristics? Explain it precisely enough that a listener could apply it: what it lets people do with covered software, which obligations it attaches and exactly when they apply, and what distinguishes it from other common open source licenses.
```hint When obligations start
The license does not restrict running or privately modifying the code. Ask which act triggers its requirements, and compare shipping a device with running modified code on your own servers.
```
```hint What the revision added
Think about the problems the third version was written to address: hardware that refuses modified software, software patents, and compatibility with other licenses.
```
### Clarifying Questions
- Should the answer cover GPLv3 alone, or also how it compares with GPLv2, the LGPL, the AGPL and permissive licenses?
- Is the interviewer interested in a particular scenario, such as shipping a product that contains GPLv3 code versus running it in a hosted service?
### What a Strong Answer Covers
- The freedoms the license protects, and copyleft as its central mechanism
- What triggers the obligations (distributing copies, not using the software) and what must be provided: corresponding source, the license text, the same terms for the whole work
- Scope: modified and combined works versus separate programs aggregated together, and the linking question
- What version 3 added over version 2: installation information for consumer devices, an explicit patent license with retaliation, the anti-circumvention clause, compatibility provisions, termination with a cure period
- Practical consequences, and how it differs from permissive licenses and from the AGPL and LGPL
### Follow-up Questions
- Can a company modify a GPLv3 program and run it in a hosted service without releasing its changes? Which license would change that answer?
- How does the LGPLv3 change the situation for a proprietary application that uses a library?
- Can code licensed "GPLv2 only" be combined with GPLv3 code? What about Apache 2.0 code?
Overview: An open source licensing interview question asking what the GPLv3 is and what characterizes it. It tests understanding of copyleft, when distribution triggers source obligations, the difference between combined works and aggregation, and the patent and anti-tivoization terms that version 3 added.
Read the full Canonical Software Engineer interview experience this question came from