Landlock Forwards Compatibility Problem

Scenario

Example

Solution

Program authors should double check from time to time whether they can use new Landlock features. Ideally, they should be made aware of these potential breakages at some point during the workflow of upgrading their libraries.

Variant A

When upgrading the library, force library users to revisit their library usage as part of the upgrade process.

Variant B

In the library’s API, make sure that all callers opt-in explicitly for the specific operations that they want to restrict.