mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
26 lines
787 B
Diff
26 lines
787 B
Diff
From c5ef87eb831f7f77c0564dd1dce92a579e7c4747 Mon Sep 17 00:00:00 2001
|
|
From: Astro <astro@spaceboyz.net>
|
|
Date: Sun, 18 Jun 2023 23:10:23 +0200
|
|
Subject: [PATCH] micro_vm: allow SYS_clock_gettime
|
|
|
|
---
|
|
machine/src/micro_vm/syscall.rs | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/machine/src/micro_vm/syscall.rs b/machine/src/micro_vm/syscall.rs
|
|
index c37d3f4e..f9e7cce2 100644
|
|
--- a/machine/src/micro_vm/syscall.rs
|
|
+++ b/machine/src/micro_vm/syscall.rs
|
|
@@ -125,6 +125,8 @@ pub fn syscall_whitelist() -> Vec<BpfRule> {
|
|
BpfRule::new(libc::SYS_readlink),
|
|
BpfRule::new(libc::SYS_getrandom),
|
|
BpfRule::new(libc::SYS_fallocate),
|
|
+ #[cfg(target_env = "gnu")]
|
|
+ BpfRule::new(libc::SYS_clock_gettime),
|
|
madvise_rule(),
|
|
]
|
|
}
|
|
--
|
|
2.41.0
|
|
|