Skip to content

core: tidy the landlock crate conversion - #326

Merged
congwang-mk merged 1 commit into
mainfrom
landlock-policy-cleanups
Oct 25, 2026
Merged

congwang-mk merged 1 commit into
mainfrom
landlock-policy-cleanups

Conversation

@congwang-mk

Copy link
Copy Markdown
Contributor

Follow-up to #305, addressing review nits. No behavior change.

  • Name the read mask once as READ_ACCESS (Execute, ReadFile, ReadDir). It was built three ways, one of them converting the host ABI through i32 for a set that is the same on every ABI.
  • Drop the fs_write_mask alias and use handled_access_fs directly.
  • Remove two casts that converted u32 to u32.

🤖 Generated with Claude Code

The read mask was spelled three ways, one of them converting the host
ABI through i32 for a set that does not depend on the ABI at all. Name
it once as READ_ACCESS. Also drop the fs_write_mask alias of
handled_access_fs and two casts that converted u32 to u32, left over
from the switch to the landlock crate.

Signed-off-by: Cong Wang <cwang@multikernel.io>
@congwang-mk
congwang-mk merged commit 4d68f08 into main Oct 25, 2026
25 checks passed
@congwang-mk
congwang-mk deleted the landlock-policy-cleanups branch October 25, 2026 20:27
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