Unikraft is licensed under 3-Clause BSD license (SPDX short identifier: BSD-3-Clause
), a permissive license which allows for re-use with modification provided that the license header remains.
This ensures that copyright and authorship remain in-tact and credit is given where credit is due, but allows Unikraft's code to be re-used for other purposes.
This license enables the wider community to reuse Unikraft source code for any use case they desire, provided authorship notice is preserved.
Unikraft is organized into libraries where each might be individually licensed.
In general, each source file should declare who is the copyright owner and under which terms and conditions the code is licensed.
The main license of the project is the following BSD-3-clause
s.
It applies in particular to source code files that do not declare a license and where there is no license information file (e.g., files LICENSE
, COPYING
) placed in the same or corresponding root
folder.
Copyright (c) YYYY, Copyright Holder.All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditionsare met:1. Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.3. Neither the name of the copyright holder nor the names of itscontributors may be used to endorse or promote products derived fromthis software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BELIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF SUCH DAMAGE.
In order to simplify working with license check tools, we add SPDX License Identifiers to the source files. For C source or header files, this appears as follows:
/* SPDX-License-Identifier: BSD-3-Clause *//*** Authors: ...** Copyright (c) ...** Redistribution...*/
For Makefiles, Python files, and other files which use a #
symbol for commenting, this appears as follows:
# SPDX-License-Identifier: BSD-3-Clause## Authors: ...## Copyright (c) ...## Redistribution...
Due to license incompatibility, code using GPL (General Public License) can not be added to the Unikraft code base. Where a BSD licensed version is available, that is preferred. In case there is no option of BSD-licensed code, the GPL code must be reimplemented and licensed under BSD-3-Clause.
This means that using code from the Linux kernel is not allowed.
Unikraft makes extensive use of external libraries to facilitate the runtime of an application. External libraries are to be "ported" on top of Unikraft: being able to be built using Unikraft core components.
Certain incompatibilities are to be fixed by patching the upstream version of the library.
A Unikraft library repository will consist of build scripts / recipes and patches, together with required files to build the library. The upstream version of the library itself will not be part of the repository, rather it will be referenced with a URL.
As with Unikraft components, external libraries need to be implemented using a BSD-compatible license.
Feel free to ask questions, report issues, and meet new people.