[Sandboxed function] Restric capability of a function #83312
-
Via attributes, disallowed anything for example IO a function can do, then white list say a directory |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This is what Code Access Security (CAS) provided. It's been deprecated and there are no plans to bring it or similar feature sets back. |
Beta Was this translation helpful? Give feedback.
-
Note that at least part of the reason the capability was removed is that it gives a false sense of security, and that many of the features it provided are better handled at the OS level (for your I/O example, you'd deny permissions to that directory). |
Beta Was this translation helpful? Give feedback.
-
the other problem is that while blocking the common system way of doing these things, there were often many complicated work-arounds for doing things (eg, reflection created system calls) that allows escaping sandboxes - if you can't trust a program, you can't trust a program to set its own security boundaries. |
Beta Was this translation helpful? Give feedback.
This is what Code Access Security (CAS) provided. It's been deprecated and there are no plans to bring it or similar feature sets back.