-
Notifications
You must be signed in to change notification settings - Fork 28
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: create a test case for sched_setscheduler() syscall #365
Comments
@dougsland better add it to ffi tools From host partition or qm partition
@pbrilla-rh |
Agreed @Yarboa, opened this one to document and track the work. |
If no complain get raised, the tool should be included here: #371 |
filed a PR: #438 |
Resolved. |
talked with @pengshanyu still need to finish the tmt case. |
Basically, inside QM sched_setscheduler() syscall is not allowed and we should prove it.
Transform the below steps into a test plan.
Steps:
1- Build source code:
gcc -o test_sched_setscheduler test_sched_setscheduler.c
2- copy the binary to qm
cp test_sched_setscheduler /usr/lib/qm/rootfs/root/
3- Execute the test
Please note: the QM pull request 362 includes the patch to make sure set schedules is not allowed, to test without this restriction just test previous version or remove
create_qm_seccomp_rules
from setup and--security-opt seccomp=/usr/share/qm/seccomp.json
from qm.container.See also:
#362 (comment)
https://gitlab.com/CentOS/automotive/container-images/ffi-tools/-/blob/main/Containerfile?ref_type=heads
The text was updated successfully, but these errors were encountered: