mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 11:33:31 +00:00
26 lines
808 B
Diff
26 lines
808 B
Diff
From af3001b1b2697ae3165e2fdf47a560fd9ab19a68 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 89ce5c29..2a6aa0cc 100644
|
|
--- a/machine/src/micro_vm/syscall.rs
|
|
+++ b/machine/src/micro_vm/syscall.rs
|
|
@@ -128,6 +128,8 @@ pub fn syscall_whitelist() -> Vec<BpfRule> {
|
|
#[cfg(all(target_env = "gnu", target_arch = "x86_64"))]
|
|
BpfRule::new(libc::SYS_readlink),
|
|
BpfRule::new(libc::SYS_getrandom),
|
|
+ #[cfg(target_env = "gnu")]
|
|
+ BpfRule::new(libc::SYS_clock_gettime),
|
|
madvise_rule(),
|
|
]
|
|
}
|
|
--
|
|
2.41.0
|
|
|