Skip to content

Commit 159fb3c

Browse files
committed
seccomp: allow new ioctls for vCPU threads
We are now calling KVM_CHECK_EXTENSION for checking the KVM_CAP_MSI_DEVID capability. We are also calling KVM_SET_GSI_ROUTING to set the interrupts routes and KVM_IRQFD to set/unset interrupt lines. Signed-off-by: Babis Chalios <bchalios@amazon.es>
1 parent b957bf0 commit 159fb3c

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

resources/seccomp/aarch64-unknown-linux-musl.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,49 @@
10171017
{
10181018
"syscall": "restart_syscall",
10191019
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
1020+
},
1021+
{
1022+
"syscall": "ioctl",
1023+
"args": [
1024+
{
1025+
"index": 1,
1026+
"type": "dword",
1027+
"op": "eq",
1028+
"val": 44547,
1029+
"comment": "KVM_CHECK_EXTENSION"
1030+
},
1031+
{
1032+
"index": 2,
1033+
"type": "dword",
1034+
"op": "eq",
1035+
"val": 131,
1036+
"comment": "KVM_CAP_MSI_DEVID"
1037+
}
1038+
]
1039+
},
1040+
{
1041+
"syscall": "ioctl",
1042+
"args": [
1043+
{
1044+
"index": 1,
1045+
"type": "dword",
1046+
"op": "eq",
1047+
"val": 1074310762,
1048+
"comment": "KVM_SET_GSI_ROUTING"
1049+
}
1050+
]
1051+
},
1052+
{
1053+
"syscall": "ioctl",
1054+
"args": [
1055+
{
1056+
"index": 1,
1057+
"type": "dword",
1058+
"op": "eq",
1059+
"val": 1075883638,
1060+
"comment": "KVM_IRQFD"
1061+
}
1062+
]
10201063
}
10211064
]
10221065
}

resources/seccomp/x86_64-unknown-linux-musl.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,49 @@
11491149
{
11501150
"syscall": "restart_syscall",
11511151
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
1152+
},
1153+
{
1154+
"syscall": "ioctl",
1155+
"args": [
1156+
{
1157+
"index": 1,
1158+
"type": "dword",
1159+
"op": "eq",
1160+
"val": 44547,
1161+
"comment": "KVM_CHECK_EXTENSION"
1162+
},
1163+
{
1164+
"index": 2,
1165+
"type": "dword",
1166+
"op": "eq",
1167+
"val": 131,
1168+
"comment": "KVM_CAP_MSI_DEVID"
1169+
}
1170+
]
1171+
},
1172+
{
1173+
"syscall": "ioctl",
1174+
"args": [
1175+
{
1176+
"index": 1,
1177+
"type": "dword",
1178+
"op": "eq",
1179+
"val": 1074310762,
1180+
"comment": "KVM_SET_GSI_ROUTING"
1181+
}
1182+
]
1183+
},
1184+
{
1185+
"syscall": "ioctl",
1186+
"args": [
1187+
{
1188+
"index": 1,
1189+
"type": "dword",
1190+
"op": "eq",
1191+
"val": 1075883638,
1192+
"comment": "KVM_IRQFD"
1193+
}
1194+
]
11521195
}
11531196
]
11541197
}

0 commit comments

Comments
 (0)