Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 141 additions & 0 deletions resources/seccomp/aarch64-unknown-linux-musl.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,75 @@
}
]
},
{
"syscall": "mmap",
"comment": "Used by pmem device to mmap the backing file",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 16385,
"comment": "libc::MAP_SHARED | libc::MAP_NORESERVE"
}
]
},
{
"syscall": "mmap",
"comment": "Used by pmem device for aligned anonymous mapping",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 16418,
"comment": "libc::MAP_PRIVATE | libc::MAP_NORESERVE | libc::MAP_ANONYMOUS"
}
]
},
{
"syscall": "mmap",
"comment": "Used by pmem device to overlay file mapping on anonymous region",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 16401,
"comment": "libc::MAP_SHARED | libc::MAP_NORESERVE | libc::MAP_FIXED"
}
]
},
{
"syscall": "mmap",
"comment": "Used by IovDeque ring buffer for net device hotplug",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 17,
"comment": "libc::MAP_SHARED | libc::MAP_FIXED"
}
]
},
{
"syscall": "memfd_create",
"comment": "Used by IovDeque ring buffer for net device hotplug"
},
{
"syscall": "fcntl",
"comment": "Used by IovDeque to seal memfd during net device hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1033,
"comment": "F_ADD_SEALS"
}
]
},
{
"syscall": "rt_sigaction",
"comment": "rt_sigaction is used by libc::abort during a panic to install the default handler for SIGABRT",
Expand Down Expand Up @@ -353,6 +422,26 @@
}
]
},
{
"syscall": "timerfd_create",
"comment": "Needed for creating rate limiters during device hotplug",
"args": [
{
"index": 0,
"type": "dword",
"op": "eq",
"val": 1,
"comment": "CLOCK_MONOTONIC"
},
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 526336,
"comment": "TFD_NONBLOCK | TFD_CLOEXEC"
}
]
},
{
"syscall": "timerfd_settime",
"comment": "Needed for rate limiting and metrics",
Expand Down Expand Up @@ -465,6 +554,58 @@
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for registering ioeventfds during device hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1077980793,
"comment": "KVM_IOEVENTFD"
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for opening tap device during net hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1074025674,
"comment": "TUNSETIFF"
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for configuring tap offload during net hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1074025680,
"comment": "TUNSETOFFLOAD"
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for setting tap vnet header size during net hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1074025688,
"comment": "TUNSETVNETHDRSZ"
}
]
},
{
"syscall": "sched_yield",
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
Expand Down
141 changes: 141 additions & 0 deletions resources/seccomp/x86_64-unknown-linux-musl.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,75 @@
}
]
},
{
"syscall": "mmap",
"comment": "Used by pmem device to mmap the backing file",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 16385,
"comment": "libc::MAP_SHARED | libc::MAP_NORESERVE"
}
]
},
{
"syscall": "mmap",
"comment": "Used by pmem device for aligned anonymous mapping",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 16418,
"comment": "libc::MAP_PRIVATE | libc::MAP_NORESERVE | libc::MAP_ANONYMOUS"
}
]
},
{
"syscall": "mmap",
"comment": "Used by pmem device to overlay file mapping on anonymous region",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 16401,
"comment": "libc::MAP_SHARED | libc::MAP_NORESERVE | libc::MAP_FIXED"
}
]
},
{
"syscall": "mmap",
"comment": "Used by IovDeque ring buffer for net device hotplug",
"args": [
{
"index": 3,
"type": "dword",
"op": "eq",
"val": 17,
"comment": "libc::MAP_SHARED | libc::MAP_FIXED"
}
]
},
{
"syscall": "memfd_create",
"comment": "Used by IovDeque ring buffer for net device hotplug"
},
{
"syscall": "fcntl",
"comment": "Used by IovDeque to seal memfd during net device hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1033,
"comment": "F_ADD_SEALS"
}
]
},
{
"syscall": "rt_sigaction",
"comment": "rt_sigaction is used by libc::abort during a panic to install the default handler for SIGABRT",
Expand Down Expand Up @@ -353,6 +422,26 @@
}
]
},
{
"syscall": "timerfd_create",
"comment": "Needed for creating rate limiters during device hotplug",
"args": [
{
"index": 0,
"type": "dword",
"op": "eq",
"val": 1,
"comment": "CLOCK_MONOTONIC"
},
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 526336,
"comment": "TFD_NONBLOCK | TFD_CLOEXEC"
}
]
},
{
"syscall": "timerfd_settime",
"comment": "Needed for rate limiting and metrics",
Expand Down Expand Up @@ -477,6 +566,58 @@
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for registering ioeventfds during device hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1077980793,
"comment": "KVM_IOEVENTFD"
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for opening tap device during net hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1074025674,
"comment": "TUNSETIFF"
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for configuring tap offload during net hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1074025680,
"comment": "TUNSETOFFLOAD"
}
]
},
{
"syscall": "ioctl",
"comment": "Needed for setting tap vnet header size during net hotplug",
"args": [
{
"index": 1,
"type": "dword",
"op": "eq",
"val": 1074025688,
"comment": "TUNSETVNETHDRSZ"
}
]
},
{
"syscall": "sched_yield",
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
Expand Down
Loading
Loading