Skip to content

Print hints about Landlock ABI version#103

Merged
l0kod merged 1 commit intolandlock-lsm:mainfrom
l0kod:hints
Oct 22, 2025
Merged

Print hints about Landlock ABI version#103
l0kod merged 1 commit intolandlock-lsm:mainfrom
l0kod:hints

Conversation

@l0kod
Copy link
Member

@l0kod l0kod commented Apr 25, 2025

Add the LandlockStatus to query the running kernel and display information about the available Landlock features.

Update the sandboxer to print hints about the status of Landlock similar to the C example.

@l0kod l0kod force-pushed the hints branch 2 times, most recently from 2f904c7 to ebf1b13 Compare October 22, 2025 15:30
Add LandlockStatus type to query the running kernel and display
information about the available Landlock features.

Replace ABI in Compatibility with LandlockStatus to be able to return
this information with RestrictionStatus.

Implement Display for ABI.

Update the sandboxer to print hints about the status of Landlock,
including the supported version, similar to the C example.

Replace ABI::new_current() with LandlockStatus::current().into().

Add a new test_current_landlock_status() test.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
@l0kod l0kod merged commit ec5e00b into landlock-lsm:main Oct 22, 2025
19 checks passed
@l0kod l0kod deleted the hints branch October 22, 2025 15:46
@l0kod l0kod mentioned this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant