Plan 9 from Bell Labs’s /usr/web/sources/contrib/de0u/root/sys/src/cmd/squeak/Cross/plugins/SecurityPlugin/SecurityPlugin.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/* 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);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].