Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export ioctl numbers #137

Merged
merged 2 commits into from
Mar 28, 2024
Merged

Export ioctl numbers #137

merged 2 commits into from
Mar 28, 2024

Conversation

NunoDasNeves
Copy link
Collaborator

Summary of the PR

In Cloud Hypervisor, the seccomp rules have hardcoded IOCTL numbers from the various bindings crates.
It would be nice to just get the IOCTL numbers from the crate itself. At the very least, it saves the time of having to compute or print out the IOCTL numbers manually when changing them or adding new ones.

Also add the MSHV_GET_VERSION_INFO IOCTL number.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

To allow seccomp rules to use them instead of hard-coding them.

Disable clippy doc requirement in mshv_ioctls.rs

Signed-off-by: Nuno Das Neves <[email protected]>
@NunoDasNeves NunoDasNeves changed the title Nudasnev/export ioctl numbers Export ioctl numbers Mar 28, 2024
@russell-islam russell-islam merged commit d9ec6ec into main Mar 28, 2024
2 checks passed
@russell-islam russell-islam deleted the nudasnev/export-ioctl-numbers branch March 28, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants