linux: add seccomp user notification ioctl constants#5224
Open
fullzer4 wants to merge 6 commits into
Open
Conversation
Collaborator
|
Some changes occurred in an Android module cc @maurer |
tgross35
requested changes
Jun 26, 2026
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
Contributor
Author
|
@rustbot ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add missing
SECCOMP_IOCTL_NOTIF_*ioctl constants for Linux and Android.These five ioctl constants are defined in the kernel's
linux/seccomp.hand are used with the seccomp user notification API. The corresponding structures (seccomp_notif,seccomp_notif_resp,seccomp_notif_addfd) and flags were already added in PR #4330, but the ioctl numbers were missing.All Linux platforms use the same ioctl numbers as they are defined using architecture-independent
_IOWRand_IOWmacros with a common magic number.Sources
Checklist
libc-test/semverhave been updated*LASTor*MAXare included@rustbot label +stable-nominated