Gramine itself is licensed under the LGPL-3.0-or-later.

Gramine also includes the following third party sources (and licenses):

mbedtls crypto libraries - Apache 2.0

Internet Software Consortium (permissive license): common/src/network/inet_pton.c

cJSON - MIT
tomlc99 - MIT
uthash - BSD revised
Ninja (python/graminelibos/ninja_syntax.py) - Apache 2.0

A number of files taken from other C libraries:
* glibc - LGPL
 ** Pal/include/elf/elf.h
 ** common/src/network/hton.c
 ** Pal/include/arch/x86_64/Linux/ - whole directory - for signal API definitions
 ** We also build a patched glibc

* musl - MIT
 ** common/src/string/strspn.c
 ** common/src/string/ctype.c