Skip to content

Conversation

mbuesch
Copy link
Contributor

@mbuesch mbuesch commented Mar 14, 2025

and align Android + Linux

Description

Update seccomp constants from seccomp.h and synchronize Linux and Android targets.

Sources

linux/seccomp.h

@rustbot label +stable-nominated

@rustbot
Copy link
Collaborator

rustbot commented Mar 14, 2025

r? @tgross35

rustbot has assigned @tgross35.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot
Copy link
Collaborator

rustbot commented Mar 14, 2025

Some changes occurred in the Android module

cc @maurer

@mbuesch
Copy link
Contributor Author

mbuesch commented Mar 14, 2025

Please also consider this for backporting to 0.2

@maurer
Copy link

maurer commented Mar 16, 2025

Android changes LGTM

Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Could you update SECCOMP_FILTER_FLAG_TSYNC_ESRCH and SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV to use 1 << 4 and 1 << 5 to be consistent the headers? I know the other constants don't do this yet, they can also be updated if you want.

Otherwise just add a permalink to the headers in the PR description and LGTM.

@tgross35
Copy link
Contributor

Please also consider this for backporting to 0.2

You can request this via rustbot:

@rustbot label +stable-nominated

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Mar 18, 2025
@mbuesch mbuesch force-pushed the seccomp-more-consts branch from fd5dfc7 to 97432d1 Compare March 18, 2025 19:09
@mbuesch
Copy link
Contributor Author

mbuesch commented Mar 18, 2025

Thanks for your review!

I changed to filter flags to use shifted ones just like in latest Linus' master branch.

Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Great, thank you!

@tgross35 tgross35 added this pull request to the merge queue Mar 18, 2025
Merged via the queue into rust-lang:main with commit 4159080 Mar 18, 2025
43 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Apr 3, 2025
and align Android + Linux

(backport <rust-lang#4330>)
(cherry picked from commit 97432d1)
@tgross35 tgross35 mentioned this pull request Apr 3, 2025
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-android O-linux O-unix S-waiting-on-review stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants