Skip to content

linux: add seccomp user notification ioctl constants#5224

Merged
tgross35 merged 6 commits into
rust-lang:mainfrom
fullzer4:add-seccomp-notify-ioctls
Jul 10, 2026
Merged

linux: add seccomp user notification ioctl constants#5224
tgross35 merged 6 commits into
rust-lang:mainfrom
fullzer4:add-seccomp-notify-ioctls

Conversation

@fullzer4

@fullzer4 fullzer4 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

Add missing SECCOMP_IOCTL_NOTIF_* ioctl constants for Linux and Android.

These five ioctl constants are defined in the kernel's linux/seccomp.h and 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 _IOWR and _IOW macros with a common magic number.

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are included
  • Constants added to both Linux and Android targets

@rustbot label +stable-nominated

@rustbot

rustbot commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in an Android module

cc @maurer

@rustbot rustbot added S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jun 26, 2026
Comment thread src/unix/linux_like/linux/mod.rs Outdated
@rustbot

rustbot commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@fullzer4

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot

This comment has been minimized.

@fullzer4
fullzer4 force-pushed the add-seccomp-notify-ioctls branch from 8fb5398 to 39f7e47 Compare June 28, 2026 21:39
@rustbot

This comment has been minimized.

@fullzer4
fullzer4 force-pushed the add-seccomp-notify-ioctls branch from 39f7e47 to ef97706 Compare June 28, 2026 21:43
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@fullzer4
fullzer4 force-pushed the add-seccomp-notify-ioctls branch from ef97706 to 7ff3cf8 Compare June 30, 2026 22:32
@rustbot

rustbot commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@tgross35
tgross35 added this pull request to the merge queue Jul 10, 2026
Merged via the queue into rust-lang:main with commit a234740 Jul 10, 2026
56 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5224>)
(cherry picked from commit a234740)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5224>)
(cherry picked from commit a234740)
@tgross35 tgross35 mentioned this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5224>)
(cherry picked from commit a234740)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
(backport <rust-lang#5224>)
(cherry picked from commit a234740)
@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 Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants