include "common.chasc.expanded"

# syscall nr is loaded in common.chasc

# network
ifeqdef SYS_send allow
ifeqdef SYS_recv allow
ifeqdef SYS_recvfrom allow	# required at least by libssh2
ifeqdef SYS_sendto allow	# ditto
ifeqdef SYS_recvmsg allow
ifeqdef SYS_sendmsg allow
ifdef SYS_socketcall
ifne SYS_socketcall not_socketcall
load args[0]
ifeq 9 allow			# send
ifeq 10 allow			# recv
ifeq 11 allow			# sendto
ifeq 12 allow			# recvfrom
ifeq 13 allow			# shutdown
ifeq 16 allow			# sendmsg
ifeq 17 allow			# recvmsg
: not_socketcall
endif
# warning: nr is no longer loaded here

: deny
ret trap
: kill
ret kill
: eperm
ret errno EPERM
: allow
ret allow
