Skip to content

linux: add seccomp user notification ioctl constants#5224

Open
fullzer4 wants to merge 6 commits into
rust-lang:mainfrom
fullzer4:add-seccomp-notify-ioctls
Open

linux: add seccomp user notification ioctl constants#5224
fullzer4 wants to merge 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

rustbot commented Jun 28, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants