Sydbox v2.1.0
Publish date: Jun 17, 2021Tags: release exherbo sandbox syd-2 daemon aarch64
I am happy to annouce the release of SydBox-2.1.0. This release has many fixes and some new features. Below you may find information on the recent changes and how to acquire SydBox.
Changes
- sydbox: do not warn when reading
/proc/pid/statreturns invalid argument - tests: many fixes, add more test coverage
- sydbox: fix AArch64 compilation and tests
- sydbox: add many daemon options, such as
--user,--group,--background,--niceetc. Read the fine manual for further details. - sydbox: fix minor security defects identified by Coverity.
- sydbox: make tracee memory read/write functions more resillient to different types of errors
- sydbox: fix & dump memory access, bpf filters for network calls.
This makes sure the network system calls return the expected
error numbers in bpf and deny modes:
bind:EADDRNOTAVAILconnect:ECONNREFUSEDsend{to,msg}:ENOTCONNrecvmsg:ECONNREFUSED
- sydbox: deny
send{msg,to}calls withENOTCONN. This allows sophisticated UDP sandboxing. - sydbox: improve option parsing, add short options for many options
- sydbox: new command line flag
--mem-access, and magic commandcore/trace/mem_accessto define mode of operation during memory access:--mem-access 0: Use cross memory attach if available,/procotherwise.--mem-access 1: Use/proc/pid/memunconditionally.--mem-access 2: Use cross memory attach if available, use/procotherwise, open file once, do not reopen the file for each call.--mem-access 3: Use/proc/pid/memunconditionally, open file once, do not reopen the file for each call.- Warning: Modes 2 and 3 may run into too many processes errors. Use another mode or adapt sysctl
fs.nr_openas necessary if this is the case.
- autotools: improve configure.
- print descriptory message in the end.
- fix checks for
struct iovec,statx,msghdr,mmsghdrandopen_how. - remove old and useless ptrace checks.
- make sure to fallback to
/proc/pid/memif bothstruct iovecandprocess_vm_readv,process_vm_writevare not found. - properly fallback to the numbers 310 and 311 if
__NR_process_vm_{read,write}vare not defined.
- sydbox: replace the hashmap implementation
uthashwith the more performantsc_map. - sydbox: fix issue with trapped children in
SIGCHLDhandler.
Download
- The tarball is signed with this key.
- Use:
keybase pgp pull alip - Browse: https://git.exherbo.org/sydbox-1.git/
- Exheres: