Skip to content

Commit cb3b00e

Browse files
committed
seccomp: allow TUNSETOFFLOAD ioctl in the vCPU threads
Before, we were calling this ioctl() from the VMM thread when creating the virtio network device. Moreover, this ioctl() was called before setting up seccomp filters. Now, we call it during device activation, which is handled by the vCPU threads. Change the seccomp filters to allow these ioctl()s. Signed-off-by: Babis Chalios <bchalios@amazon.es>
1 parent 9b1d41b commit cb3b00e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,18 @@
10381038
}
10391039
]
10401040
},
1041+
{
1042+
"syscall": "ioctl",
1043+
"args": [
1044+
{
1045+
"index": 1,
1046+
"type": "dword",
1047+
"op": "eq",
1048+
"val": 1074025680,
1049+
"comment": "TUNSETOFFLOAD"
1050+
}
1051+
]
1052+
},
10411053
{
10421054
"syscall": "sched_yield",
10431055
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,18 @@
12381238
}
12391239
]
12401240
},
1241+
{
1242+
"syscall": "ioctl",
1243+
"args": [
1244+
{
1245+
"index": 1,
1246+
"type": "dword",
1247+
"op": "eq",
1248+
"val": 1074025680,
1249+
"comment": "TUNSETOFFLOAD"
1250+
}
1251+
]
1252+
},
12411253
{
12421254
"syscall": "sched_yield",
12431255
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"

0 commit comments

Comments
 (0)