Software & B2B
Open source licences: what you may do with other people's code
Much of your software consists of code you did not write. That is normal and good. But every one of these libraries comes with a licence, and some set conditions.
In short
- Open source software may be used, changed and passed on, but only under the conditions of its licence.
- Permissive licences such as MIT or Apache 2.0 mainly require notices; copyleft licences such as the GPL require source code when distributing.
- A bill of materials with SPDX identifiers shows which licences are in your own product.
What it is about
Modern software consists largely of open source components: libraries for databases, encryption, image processing, user interfaces. That saves time and is often more secure than writing everything yourself. But free does not mean unconditional. Every component is under a licence that defines what you may do with it and which duties you take on.
For companies that sell software, build it into devices or provide it to customers as a service, this is not a formality. Violating a licence risks injunctions and, in the worst case, an obligation to disclose your own source code.
How it works
The Open Source Initiative keeps a list of recognised open source licences. Roughly, there are two families. Permissive licences such as MIT, BSD or Apache 2.0 allow almost any use, including in closed software. They mainly require that copyright notice and licence text are included; Apache 2.0 also deals with patent rights.
Copyleft licences such as the GNU General Public License require something else: anyone who distributes a program that contains or builds on GPL code must also distribute it under the GPL and make the source code available. The AGPL extends this to software provided to users only over a network. To make licences machine-readable there are SPDX identifiers, such as "Apache-2.0" or "GPL-3.0-only". The REUSE project of the Free Software Foundation Europe shows how to write them into every file.
Where it goes wrong
The most common mistake is ignorance. Developers include a library because it works, and nobody looks at the licence. Through dependencies of dependencies, hundreds of components end up in the product.
Second, the notices are missing. Even permissive licences require licence texts to be shipped, and precisely that often does not happen with devices or apps. Third, the contract with the service provider does not say who is answerable for licence compliance.
How to proceed
For every version of your software, keep a bill of materials of all components with SPDX licence identifiers. Decide which licences are allowed without asking, and have everything else assessed before inclusion. Ship licence texts and notices, for example in a NOTICE file or a "Licences" menu item. Specify in the development contract that the contractor hands over a licence list.
Read more: Software supply chain and SBOM: knowing what is inside your software, Commissioning a software project properly: requirements, acceptance, source code and Secure software development: what the NIST SSDF requires.
How Airnite helps
Airnite delivers a bill of materials with licences for every piece of software, checks existing products for critical components and sets up automatic licence checks in your development. For the legal assessment of individual licence questions, please consult a legal adviser.
Checklist
Sources
Every fact in this article is based on the following publications. Primary sources are marked.
- Open Source Initiative (OSI)Licenses
- Free Software FoundationGNU General Public License v3.0
- SPDX (Linux Foundation)SPDX License List
- Free Software Foundation EuropeREUSE – Make licensing easy for everyone
Not a substitute for legal advice. General information, not an assessment of your individual case.
Matching services
Read on
Software supply chain and SBOM: knowing what is inside your software
Your software has more suppliers than your company. Hundreds of libraries, each maintained by people you have never met. A bill of materials is the first step to sleeping soundly.Software & B2B3 minCommissioning a software project properly: requirements, acceptance, source code
Many software projects do not fail on code but on the first sentence: “We'd like something like …”. Settle requirements, acceptance and rights at the start and you save months and nerves at the end.Software & B2B3 minSecure software development: what the NIST SSDF requires
The penetration test shortly before launch finds twelve flaws, the deadline wobbles, everyone is annoyed. Secure development means most of those flaws never arise in the first place.Current incidents and warnings are covered in the Zero Day magazine. Go to the magazine