samples/landlock: Print hints about ABI versions
authorMickaël Salaün <mic@digikod.net>
Fri, 23 Sep 2022 15:42:05 +0000 (17:42 +0200)
committerMickaël Salaün <mic@digikod.net>
Thu, 29 Sep 2022 16:43:01 +0000 (18:43 +0200)
commit903cfe8a7aa8894ae60ef47a9c011e551d7bafef
treecbffd4ee51934be4d13666f819037843ff31cc84
parentf76349cf41451c5c42a99f18a9163377e4b364ff
samples/landlock: Print hints about ABI versions

Extend the help with the latest Landlock ABI version supported by the
sandboxer.

Inform users about the sandboxer or the kernel not being up-to-date.

Make the version check code easier to update and harder to misuse.

Cc: Paul Moore <paul@paul-moore.com>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Reviewed-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20220923154207.3311629-2-mic@digikod.net
samples/landlock/sandboxer.c