You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove SYS_futex, SYS_write, SYS_close, and SYS_mmap from list of default allowed syscalls for seccomp on Linux #183
) by default beause they are needed by some writer functions we have. Writer functions are not registered like normal host functions. Instead, they are passed in as a parameter to UninitializedSandbox::new (
I think we can go ahead with removing the syscalls from the default.
Now the print writer is registered like any other function.
It does have a dedicated registration function to simplify some things (signature checking, using the correct name, and adding the extra syscalls we add for printing), but that one also comes with the extra syscalls flavor.
Is removing mmap() entirely from the hypervisor thread safe? I would imagine there are some scenarios where the allocator will mmap(MAP_ANONYMOUS) to get a chunk of heap memory. I would also think we should be quite careful about removing futexes, as those are used all over the place.
Activity
jprendes commentedon Jul 2, 2025
I think we can go ahead with removing the syscalls from the default.
Now the print writer is registered like any other function.
It does have a dedicated registration function to simplify some things (signature checking, using the correct name, and adding the extra syscalls we add for printing), but that one also comes with the extra syscalls flavor.
syntactically commentedon Jul 2, 2025
Is removing mmap() entirely from the hypervisor thread safe? I would imagine there are some scenarios where the allocator will mmap(MAP_ANONYMOUS) to get a chunk of heap memory. I would also think we should be quite careful about removing futexes, as those are used all over the place.
dblnz commentedon Oct 23, 2025
@danbugs I think this no longer applies since we have merged #970 , is that right?
danbugs commentedon Nov 4, 2025
@dblnz ~ you're right! Closing this.