R parity of morie._license_check. Exposes the
FSF GPL-compatible licence list and a
check_plugin_license() helper that downstream R packages /
plugins can call to confirm GPL compatibility before linking
against morie internals. The guard is advisory — it warns or
raises but does not enforce at the R-namespace level. For
stronger guarantees see the companion userspace LSM-style daemon
(daemon/morie_lsm.py) and the kernel companion module
(kernel-module/morie.c).
Value
morie_gpl_compatible_licenses() returns a character vector
of GPL-compatible SPDX identifiers; check_plugin_license() returns
a logical (invisibly), signalling a warning or error when the supplied
licence is not GPL-compatible.
Examples
morie_gpl_compatible_licenses()
#> [1] "GPL-2.0-only" "GPL-2.0-or-later" "GPL-3.0-only"
#> [4] "GPL-3.0-or-later" "AGPL-3.0-only" "AGPL-3.0-or-later"
#> [7] "LGPL-2.1-only" "LGPL-2.1-or-later" "LGPL-3.0-only"
#> [10] "LGPL-3.0-or-later" "Apache-2.0" "MIT"
#> [13] "BSD-2-Clause" "BSD-3-Clause" "ISC"
#> [16] "MPL-2.0" "CC0-1.0" "Unlicense"
#> [19] "Zlib"
