Skip to content

Comparator calls landrun with --best-effort #83

Description

@tadamcz

Problem

Landrun's --best-effort silently degrades to the best available Landlock version. For Linux older than 5.13 (June 2021) this means it falls back to no Landlock protections at all.

See https://github.com/zouuup/landrun#best-effort-mode

Potential solutions

I think there are two main options to improve this without making changes to landrun:

  1. Comparator still passes --best-effort, but refuses to run on very old versions of Linux, printing a descriptive error message.
  2. Comparator does not pass --best-effort. It thus requires Landlock >=v9, which was released with Kernel 7.1 in June 2026.

For more fine-grained control, a PR to landrun would be required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions