Skip to content

Commit 03418e3

Browse files
committed
chore: Update seccomp filters
We need to add fstat/newfstatat to the seccomp filter list due to the call to File::metadata() in snapshot_memory_to_file. Signed-off-by: Patrick Roy <[email protected]>
1 parent 9a53cd6 commit 03418e3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"default_action": "trap",
44
"filter_action": "allow",
55
"filter": [
6+
{
7+
"syscall": "newfstatat",
8+
"comment": "Used when creating snapshots in vmm:persist::snapshot_memory_to_file through std::fs::File::metadata"
9+
},
610
{
711
"syscall": "epoll_ctl"
812
},

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"default_action": "trap",
44
"filter_action": "allow",
55
"filter": [
6+
{
7+
"syscall": "stat",
8+
"comment": "Used when creating snapshots in vmm:persist::snapshot_memory_to_file through std::fs::File::metadata"
9+
},
610
{
711
"syscall": "epoll_ctl"
812
},

0 commit comments

Comments
 (0)