Skip to content

Commit

Permalink
Typst library: replace our own SYS_membarrier with libc one
Browse files Browse the repository at this point in the history
  • Loading branch information
soupslurpr committed Mar 27, 2024
1 parent ef0410a commit b4a7a52
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions beautyxt_rs_typst/src/typst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@ pub fn initialize_typst_world() {
panic!()
}
};
let SYS_membarrier: i64 = {
if std::env::consts::ARCH == "x86_64" {
324
} else if std::env::consts::ARCH == "aarch64" {
283
} else {
panic!()
}
};

let filter: BpfProgram = SeccompFilter::new(
vec![
Expand All @@ -115,7 +106,7 @@ pub fn initialize_typst_world() {
(libc::SYS_openat, vec![]),
(SYS_newfstatat, vec![]),
(libc::SYS_munmap, vec![]),
(SYS_membarrier, vec![]),
(libc::SYS_membarrier, vec![]),
]
.into_iter()
.collect(),
Expand Down

0 comments on commit b4a7a52

Please sign in to comment.