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 fullzer4 requested a review from tgross35 June 26, 2026 19:20
@fullzer4

Copy link
Copy Markdown
Contributor Author

@rustbot ready

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