What Prevents Harmful Code from Executing?


In the case where an application is executed directly from an untrusted environment such as the Internet, code-access security prevents harmful code from executing by first checking whether the code has permission to perform a particular operation such as deleting files—this is formally known as making a Demand for a particular permission. For example, when the chart component—contained on a Web page— executes a statement such as the Visual Basic .NET Kill statement to delete a file, the Kill statement first demands a permission to delete files, and if the permission is not granted a security exception is thrown and the file is not deleted.




Security for Microsoft Visual Basic  .NET
Security for Microsoft Visual Basic .NET
ISBN: 735619190
EAN: N/A
Year: 2003
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net