UnauthorizedAccessException: System access is restricted, you are not allowed to use System.IO.TextWriter
I get this for lot of system classes, any reason why that's restricted in oxide?
Solved UnauthorizedAccessException: System access is restricted
Discussion in 'Rust Development' started by Caffeine, Jul 12, 2016.
-
For security reasons plugins aren't allowed to use unrestricted IO.
See blacklisted- and whitelistedNamespaces: Oxide/CompiledAssembly.cs at master · OxideMod/Oxide · GitHub -
sigh, guess i'm going to have to run my own compiled version from now on. Thanks for linking the file of interest.
-
Wulf Community Admin
Or just make an extension which isn't sandboxed. Plugins are sandboxed as most hosts are shared and require the security to be there to prevent potentially malicious plugins. Custom builds of Oxide aren't supported, so I'd recommend the extension method. -
Or create an extension.
It isn't too bad that I/O is restricted. -
What the difference between extensions and plugins? I don't mean in terms of development, as i've looked at some of the extensions source, I mean in terms of "security" ? both consist of simply copying a files to directories and having oxide load them. If this dictates the security layer then maybe you can consider a plugins_unrestricted directory that has the same affect.
[DOUBLEPOST=1468339475][/DOUBLEPOST]By the way I think your forums are running really slow today. It could be my internet but everything else seems to be running like usual -
Wulf Community Admin
Unofficial/community extensions are often not allow on many hosts, plugins are. Extensions aren't generally encouraged for plugin use as most of the time the person is trying to do something that can be done via plugins using a wrapper, else it's something that shouldn't be done.
And yes, the site is slow today, but I don't manage the hosting, so the host would have to figure that one out.
