Skip to content

compat,lib: add basic support for ABI v7, add support for restrict_self log flags - #117

Closed
stevennyman wants to merge 1 commit into
landlock-lsm:mainfrom
stevennyman:main
Closed

compat,lib: add basic support for ABI v7, add support for restrict_self log flags#117
stevennyman wants to merge 1 commit into
landlock-lsm:mainfrom
stevennyman:main

Conversation

@stevennyman

Copy link
Copy Markdown

No description provided.

@stevennyman

Copy link
Copy Markdown
Author

This is required by landlock-lsm/island#13

…lf log flags

Signed-off-by: Steven Nyman <35897452+stevennyman@users.noreply.github.com>
@stevennyman

Copy link
Copy Markdown
Author

I pushed an updated version of the commit that corrects the formatting. I'm unsure regarding the Rust 1.68 version support issue with one of the dependencies of the dependencies.

@l0kod l0kod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I started to work on this task some time ago but it require a new kind of interface specific to the new flags. I updated this work and I'll create another PR.

Comment thread src/ruleset.rs
///
/// On error, returns a wrapped [`RestrictSelfError`].
pub fn restrict_self(mut self) -> Result<RestrictionStatus, RulesetError> {
pub fn restrict_self_with_flags(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, we need a smoother interface.

Comment thread src/ruleset.rs
LogSubdomainsOff = uapi::LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF,
}

impl Access for RestrictSelfFlag {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syscall flags are not the same semantic as access rights.

@l0kod

l0kod commented Apr 10, 2026

Copy link
Copy Markdown
Member

See #119 and #120

Please take a look, your feedback is very welcome.

@l0kod

l0kod commented May 20, 2026

Copy link
Copy Markdown
Member

Duplicate of #120

@l0kod l0kod marked this as a duplicate of #120 May 20, 2026
@l0kod l0kod closed this May 20, 2026
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.

2 participants