summary refs log tree commit diff
path: root/pkgs/applications/virtualization/crosvm/default-seccomp-policy-dir.patch
blob: 46b091b3a3532e7bd57e18e03125eefb28885665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/main.rs b/src/main.rs
index 81f20a7..481ebd7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -158,7 +158,9 @@ impl Default for Config {
             wayland_dmabuf: false,
             shared_dirs: Vec::new(),
             sandbox: !cfg!(feature = "default-no-sandbox"),
-            seccomp_policy_dir: PathBuf::from(SECCOMP_POLICY_DIR),
+            seccomp_policy_dir: PathBuf::from(
+                option_env!("DEFAULT_SECCOMP_POLICY_DIR").unwrap_or(SECCOMP_POLICY_DIR),
+            ),
             seccomp_log_failures: false,
             cras_audio: false,
             cras_capture: false,