Skip to content

Commit eb0fa41

Browse files
committed
chore(virtio-pmem): add msync syscall to seccomp filters
msync is used by virtio-pmem device to trigger sync of mmaped file content to the underlying file. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent f335a0a commit eb0fa41

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,19 @@
215215
"syscall": "madvise",
216216
"comment": "Used by the VirtIO balloon device and by musl for some customer workloads. It is also used by aws-lc during random number generation. They setup a memory page that mark with MADV_WIPEONFORK to be able to detect forks. They also call it with -1 to see if madvise is supported in certain platforms."
217217
},
218+
{
219+
"syscall": "msync",
220+
"comment": "Used by the VirtIO pmem device to sync the file content with the backing file.",
221+
"args": [
222+
{
223+
"index": 2,
224+
"type": "dword",
225+
"op": "eq",
226+
"val": 4,
227+
"comment": "libc::MS_SYNC"
228+
}
229+
]
230+
},
218231
{
219232
"syscall": "mmap",
220233
"comment": "Used by the VirtIO balloon device",

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,19 @@
215215
"syscall": "madvise",
216216
"comment": "Used by the VirtIO balloon device and by musl for some customer workloads. It is also used by aws-lc during random number generation. They setup a memory page that mark with MADV_WIPEONFORK to be able to detect forks. They also call it with -1 to see if madvise is supported in certain platforms."
217217
},
218+
{
219+
"syscall": "msync",
220+
"comment": "Used by the VirtIO pmem device to sync the file content with the backing file.",
221+
"args": [
222+
{
223+
"index": 2,
224+
"type": "dword",
225+
"op": "eq",
226+
"val": 4,
227+
"comment": "libc::MS_SYNC"
228+
}
229+
]
230+
},
218231
{
219232
"syscall": "mmap",
220233
"comment": "Used by the VirtIO balloon device",

0 commit comments

Comments
 (0)