1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/* security plugin header file */
/* image writing */
sqInt ioDisableImageWrite(void);
sqInt ioCanWriteImage(void);
/* untrusted and secure directory locations */
char *ioGetSecureUserDirectory(void);
char *ioGetUntrustedUserDirectory(void);
/* following must be called by the VM before interpret() */
sqInt ioInitSecurity(void);
sqInt ioCanListenOnPort(sqInt s, sqInt port);
sqInt ioCanConnectToPort(sqInt netAddr, sqInt port);
sqInt ioCanCreateSocketOfType(sqInt netType, sqInt socketType);
sqInt ioCanCreateSocketOfType(sqInt netType, sqInt socketType);
sqInt ioCanConnectToPort(sqInt netAddr, sqInt port);
sqInt ioDisableSocketAccess(void);
sqInt ioHasSocketAccess(void);
sqInt ioCanCreatePathOfSize(char* pathString, sqInt pathStringLength);
sqInt ioCanDeleteFileOfSize(char* pathString, sqInt pathStringLength);
sqInt ioCanDeletePathOfSize(char* pathString, sqInt pathStringLength);
sqInt ioCanGetFileTypeOfSize(char* pathString, sqInt pathStringLength);
sqInt ioCanListPathOfSize(char* pathString, sqInt pathStringLength);
sqInt ioCanOpenAsyncFileOfSizeWritable(char* pathString, sqInt pathStringLength, sqInt writeFlag);
sqInt ioCanOpenFileOfSizeWritable(char* pathString, sqInt pathStringLength, sqInt writeFlag);
sqInt ioCanRenameFileOfSize(char* pathString, sqInt pathStringLength);
sqInt ioCanRenameImage(void);
sqInt ioCanSetFileTypeOfSize(char* pathString, sqInt pathStringLength);
sqInt ioDisableFileAccess(void);
sqInt ioHasFileAccess(void);
|