Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caps: add support for file truncate with landlock v3 #46

Merged
merged 4 commits into from
Apr 2, 2023
Merged

Conversation

shoenig
Copy link
Owner

@shoenig shoenig commented Apr 2, 2023

This PR adds support for the ACCESS_FS_TRUNCATE landlock rule
added in landlock v3 (Linux 6.2). If a file or directory is
added to a lock set with the 'w' permission, that file or files
in that directory can now be truncated (e.g. with os.Truncate).

Closes #34

shoenig added 4 commits April 1, 2023 19:59
This PR adds support for the ACCESS_FS_TRUNCATE landlock rule
added in landlock v3 (Linux 6.2). If a file or directory is
added to a lock set with the 'w' permission, that file or files
in that directory can now be truncated (e.g. with os.Truncate).
@shoenig shoenig merged commit 87d268a into main Apr 2, 2023
@shoenig shoenig deleted the support-v3 branch March 28, 2024 13:17
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.

syscall: add support for v3
1 participant