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 Landlock truncate support #3423

Merged
merged 2 commits into from Oct 6, 2022
Merged

Conversation

l0kod
Copy link
Contributor

@l0kod l0kod commented Oct 5, 2022

This covers a Landlock update that I pushed in linux-next.
This patch series is almost ready and will be part of Linux 6.2 .

@l0kod
Copy link
Contributor Author

l0kod commented Oct 5, 2022

Cc @gnoack

@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Merging #3423 (8bbafb0) into master (5623308) will decrease coverage by 0.1%.
The diff coverage is n/a.

Impacted Files Coverage Δ
sys/linux/init_alg.go 0.0% <0.0%> (-53.3%) ⬇️
sys/linux/init_images.go 64.6% <0.0%> (+1.0%) ⬆️
sys/linux/init.go 80.8% <0.0%> (+2.1%) ⬆️

dvyukov
dvyukov previously approved these changes Oct 6, 2022
@dvyukov
Copy link
Collaborator

dvyukov commented Oct 6, 2022

The change looks good to me, but please rebase.
We've enabled policy to require tests to pass on the latest tree.
Usually I see a Rebase button on PRs to do this by myself. However I don't see it in this case. IIRC there is some setting somewhere that allows repo owners to update your branch used to send a PR.
@tarasmadan FYI

dvyukov
dvyukov previously approved these changes Oct 6, 2022
@dvyukov dvyukov enabled auto-merge (rebase) October 6, 2022 11:44
@dvyukov
Copy link
Collaborator

dvyukov commented Oct 6, 2022

Something happened with your CLA. CLA bot complains...

Add the new LANDLOCK_ACCESS_FS_TRUNCATE flag for the file truncation
handling.

Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
This test covers file truncation with path and file descriptor checks
handled in security/landlock/fs.c .

Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
auto-merge was automatically disabled October 6, 2022 12:00

Head branch was pushed to by a user without write access

@l0kod
Copy link
Contributor Author

l0kod commented Oct 6, 2022

Something happened with your CLA. CLA bot complains...

Yep, wrong email address. :)

@dvyukov dvyukov enabled auto-merge (rebase) October 6, 2022 12:05
@dvyukov dvyukov merged commit 80b58a4 into google:master Oct 6, 2022
@l0kod l0kod deleted the landlock-truncate branch October 6, 2022 12:13
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.

None yet

2 participants