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

ffi: Adding modprobe modules case. #449

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

weiwang-linda
Copy link
Collaborator

@weiwang-linda weiwang-linda commented May 29, 2024

Adding a ffi test to check it won't be possible to access /lib/modules to load any module via modprobe inside the QM partition.
resolve #373

Make sure it won't be possible to access /lib/modules to load any module via modprobe inside QM container, like below:

bash-5.1# modprobe ext4
modprobe: FATAL: Module ext4 not found in directory /lib/modules/5.14.0-438.391.el9iv.x86_64
bash-5.1# ls /lib/modules/5.14.0-438.391.el9iv.x86_64
ls: cannot access '/lib/modules/5.14.0-438.391.el9iv.x86_64': No such file or directory

Copy link
Collaborator

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

Please edit description with resolve #issue_id, and explain what is the desired out put
the tests are verified by packit, no need to add it here

@Yarboa
Copy link
Collaborator

Yarboa commented Jun 1, 2024

/packit test

tests/ffi/modules/test.sh Outdated Show resolved Hide resolved
@Yarboa
Copy link
Collaborator

Yarboa commented Jun 1, 2024

/packit test --identifier e2e-tiers

Check it won't be possible to access /lib/modules to load any module via modprobe inside the QM partition.

Jira-URL: https://issues.redhat.com/browse/VROOM-19336
Signed-off-by: weiwang <weiwang@redhat.com>
Copy link
Collaborator

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

LGTM

@Yarboa Yarboa merged commit 8f3439b into containers:main Jun 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FFI: modprobe - test interference from the QM partition to host
3 participants