In landlock/plumbing.py:149 the kernel version is checked:
kernel_version_tuple = tuple(map(int, kernel_version.split("-")[0].split(".")))
where kernel_version is the result of platform.release(). For a standard Debian kernel the reported release may look like '6.17.8+deb14-amd64'. Although the last part amd64 gets split off, the +deb14 part makes the int() call fail.
I'd suggest re.split(r"[+-]", kernel_version) but am unsure if this covers all popular version strings that could be found in the wild.
Problem occurred with landlock version 1.0.0.dev5, Python 3.12.5.
In
landlock/plumbing.py:149the kernel version is checked:where
kernel_versionis the result ofplatform.release(). For a standard Debian kernel the reported release may look like'6.17.8+deb14-amd64'. Although the last partamd64gets split off, the+deb14part makes theint()call fail.I'd suggest
re.split(r"[+-]", kernel_version)but am unsure if this covers all popular version strings that could be found in the wild.Problem occurred with landlock version 1.0.0.dev5, Python 3.12.5.