resource cpu 1.0
resource memory 1000000000   # 1 Billion bytes
resource diskused 100000000 # 100 MB
resource events 20
resource filewrite 10000000
resource fileread 10000000
resource filesopened 10
resource insockets 10
resource outsockets 10
resource netsend 10000000
resource netrecv 10000000
resource loopsend 1000000
resource looprecv 1000000
resource lograte 1000
resource random 1000
resource messport <messport>
resource connport <connport>
resource messport <messport1>
resource connport <connport1>
resource messport <messport2>
resource connport <connport2>

call gethostbyname_ex allow
call sendmess allow
call stopcomm allow 			# it doesn't make sense to restrict
call recvmess allow
call openconn allow
call waitforconn allow
call socket.close allow 		# let's not restrict
call socket.send allow 			# let's not restrict
call socket.recv allow 			# let's not restrict
# open and file.__init__ both have built in restrictions...
call open allow 			# can read / write all
call file.__init__ allow 		# can read / write all
call file.close allow 			# shouldn't restrict
call file.flush allow 			# they are free to use
call file.next allow 			# free to use as well...
call file.read allow 			# allow read
call file.readline allow 		# shouldn't restrict
call file.readlines allow 		# shouldn't restrict
call file.seek allow 			# seek doesn't restrict
call file.write allow 			# shouldn't restrict (open restricts)
call file.writelines allow 		# shouldn't restrict (open restricts)
call sleep allow			# harmless
call settimer allow			# we can't really do anything smart
call canceltimer allow			# should be okay
call exitall allow			# should be harmless 
call removefile allow			# should be harmless 
call randomfloat allow
call getlock allow
call getruntime allow

call log.write allow
call log.writelines allow
call getmyip allow
