|
@@ -20,7 +20,6 @@ pub enum Allow {
|
|
|
Mmap,
|
|
|
Mprotect,
|
|
|
UnixConnect,
|
|
|
- UnixListen,
|
|
|
TcpAccept,
|
|
|
Read,
|
|
|
Write,
|
|
@@ -89,13 +88,6 @@ pub fn seccomp_compile_for_arch(
|
|
|
rules.insert(libc::SYS_socket, vec![]); //TODO: Restrict to AF_UNIX
|
|
|
rules.insert(libc::SYS_getsockopt, vec![]);
|
|
|
}
|
|
|
- Allow::UnixListen => {
|
|
|
- rules.insert(libc::SYS_accept4, vec![]);
|
|
|
- rules.insert(libc::SYS_bind, vec![]);
|
|
|
- rules.insert(libc::SYS_listen, vec![]);
|
|
|
- rules.insert(libc::SYS_socket, vec![]); //TODO: Restrict to AF_UNIX
|
|
|
- rules.insert(libc::SYS_getsockopt, vec![]);
|
|
|
- }
|
|
|
Allow::TcpAccept => {
|
|
|
rules.insert(libc::SYS_accept4, vec![]);
|
|
|
rules.insert(libc::SYS_socket, vec![]); //TODO: Restrict to AF_UNIX
|