Skip to contents

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"  "LGPL-2.1-only"     "LGPL-2.1-or-later"
#>  [7] "LGPL-3.0-only"     "LGPL-3.0-or-later" "Apache-2.0"       
#> [10] "MIT"               "BSD-2-Clause"      "BSD-3-Clause"     
#> [13] "ISC"               "MPL-2.0"           "CC0-1.0"          
#> [16] "Unlicense"         "Zlib"