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

Add AccessFSTruncate to access rights that apply to files #30

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

ngergs
Copy link
Contributor

@ngergs ngergs commented Jul 30, 2024

AccessFSTruncate works also on a per file basis and can from my understanding be used to e.g. overwrite an existing target file without granting access to directories. Here is an minimal example gist.

Tested it with this patched version and it worked.

AccessFSTruncate works also on a per file basis and can be used to e.g. overwrite an existing target file
like in this gist: https://gist.github.com/ngergs/b2ace345fbf8d682da33b5a4d869bb04
@Foxboron
Copy link

Foxboron commented Aug 2, 2024

Spotted the same issue this week and didn't see a patch was already posted :) Thanks!

@ngergs
Copy link
Contributor Author

ngergs commented Aug 23, 2024

ping @gnoack :)

@gnoack
Copy link
Collaborator

gnoack commented Sep 9, 2024

Thank you for the patch, you are absolutely correct about this.

@gnoack gnoack merged commit 0187f7c into landlock-lsm:main Sep 9, 2024
7 checks passed
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.

3 participants