Skip to content

Commit

Permalink
add new syscalls to fix crashing when rendering markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
soupslurpr committed Mar 27, 2024
1 parent 2d939c7 commit ef0410a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beautyxt_rs_plain_text_and_markdown/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ pub fn apply_seccomp_bpf() {
(libc::SYS_getrandom, vec![]),
(libc::SYS_clock_gettime, vec![]),
(SYS_mmap, vec![]),
(libc::SYS_futex, vec![]),
(libc::SYS_membarrier, vec![]),
(libc::SYS_write, vec![]),
(libc::SYS_read, vec![]),
(libc::SYS_getuid, vec![]),
(libc::SYS_epoll_pwait, vec![])
]
.into_iter()
.collect(),
Expand Down

0 comments on commit ef0410a

Please sign in to comment.