100165436.htm
来自「C#高级编程(第三版),顶死你们。。 。up」· HTM 代码 · 共 72 行
HTM
72 行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
14.4 安全策略的管理
</title></head>
<body>
<div class="area">
<div class="col1">
<div class="lineBlue">
</div>
<!-- title -->
<div class="arcTitle">
<h1>
<a href="../16">
C#高级编程(第3版)【全文连载】
</a>
</h1>
<div style="text-align: center; font-size: 15px">
<a href="100165436.htm">
14.4 安全策略的管理
</a>
</div>
<div style="text-align: center; font-size: 15px">
<a class="url" href="../../default.htm">http://book.csdn.net/</a>
2006-10-13 14:41:00
</div>
<div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
<div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
图书导读
</div>
<div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
<!--导读-->
<h1 id="divCurrentNode" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165436.htm'><font color='red'>14.4 安全策略的管理</font></a></h1>
<div id="divRelateNode" style="padding-left: 2px">
<div style='float:left;width:49%'>·<a href='100165433.htm'>14.3.2 Windows Principal</a></div><div style='float:right;width:49%'>·<a href='100165434.htm'>14.3.3 角色</a></div><div style='float:left;width:49%'>·<a href='100165435.htm'>14.3.4 声明基于角色的安全性</a></div><div style='float:right;width:49%'>·<a href='100165437.htm'>14.4.1 安全配置文件</a></div><div style='float:left;width:49%'>·<a href='100165438.htm'>14.4.2 代码组和权限的管理</a></div><div style='float:right;width:49%'>·<a href='100165439.htm'>14.4.3 安全性的启用和禁用</a></div></div>
</div>
</div>
</div>
<!-- main -->
<div id="main">
<div id="text"> <link href="css.css" rel="stylesheet" type="text/css" /><h3 style="MARGIN-TOP: 11.4pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FTEL: 11.4pt"><a ftel="_Toc507815616"><span lang="EN-US">14.4 </span></a><span style="FONT-FAMILY: 楷体_GB2312">安全策略的管理</span></h3>
<p class="MsoNormal"><span style="COLOR: black; FONT-FAMILY: 宋体">虽然</span><span lang="EN-US" style="COLOR: black">.NET</span><span style="COLOR: black; FONT-FAMILY: 宋体">的安全特性比以前在</span><span lang="EN-US" style="COLOR: black">Windows</span><span style="COLOR: black; FONT-FAMILY: 宋体">中的安全特性更加先进,但还是有一些局限性:</span></p>
<p class="1" style="MARGIN-LEFT: 37.55pt; FTEL: -16.1pt"><span lang="EN-US">●<span style="FONT: 7pt 'Times New Roman'"> </span></span><span lang="EN-US">.NET</span><span style="FONT-FAMILY: 宋体">安全策略不能在非托管代码上执行</span><span lang="EN-US">(</span><span style="FONT-FAMILY: 宋体">尽管</span><span lang="EN-US">.NET</span><span style="FONT-FAMILY: 宋体">安全策略对非托管代码的调用提供了一些保护措施</span><span lang="EN-US">)</span><span style="FONT-FAMILY: 宋体">。</span></p>
<p class="1" style="MARGIN-LEFT: 37.55pt; FTEL: -16.1pt"><span lang="EN-US" style="COLOR: black">●<span style="FONT: 7pt 'Times New Roman'"> </span></span><span style="COLOR: black; FONT-FAMILY: 宋体">如果用户把程序集复制到本地机器上,则程序集将具有</span><span lang="EN-US" style="COLOR: black">FullTrust</span><span style="COLOR: black; FONT-FAMILY: 宋体">权限,安全策略将被忽略。为了解决这个问题,可以对赋予本地代码的权限进行限制。</span></p>
<p class="1" style="MARGIN-LEFT: 37.25pt; FTEL: -15.8pt"><span lang="EN-US" style="COLOR: black; LETTER-SPACING: -0.1pt">●<span style="FONT: 7pt 'Times New Roman'"> </span></span><span lang="EN-US" style="COLOR: black; LETTER-SPACING: -0.1pt">.NET</span><span style="COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: -0.1pt">安全策略对基于脚本的病毒和有害的</span><span lang="EN-US" style="COLOR: black; LETTER-SPACING: -0.1pt">Win32 .EXE</span><span style="COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: -0.1pt">文件的处理几乎没有帮助,</span><span lang="EN-US" style="COLOR: black; LETTER-SPACING: -0.1pt">Microsoft</span><span style="COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: -0.1pt">是以与</span><span lang="EN-US" style="COLOR: black; LETTER-SPACING: -0.1pt">.NET</span><span style="COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: -0.1pt">安全策略不同的方式处理它们的。例如,</span><span lang="EN-US" style="COLOR: black; LETTER-SPACING: -0.1pt">Outlook</span><span style="COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: -0.1pt">的最新版本不允许从电子邮件中运行可执行文件。</span></p>
<p class="MsoNormal"><span style="COLOR: black; FONT-FAMILY: 宋体">但是,</span><span lang="EN-US" style="COLOR: black">.NET</span><span style="COLOR: black; FONT-FAMILY: 宋体">可以帮助操作系统做出一些智能性的决定,例如代码的信赖级别和代码的来源</span><span lang="EN-US" style="COLOR: black">(</span><span style="COLOR: black; FONT-FAMILY: 宋体">如内部网应用程序、</span><span lang="EN-US" style="COLOR: black">Web</span><span style="COLOR: black; FONT-FAMILY: 宋体">页上的控件、通过</span><span lang="EN-US" style="COLOR: black">Internet</span><span style="COLOR: black; FONT-FAMILY: 宋体">从软件厂商那里下载的</span><span lang="EN-US" style="COLOR: black">Windows Forms</span><span style="COLOR: black; FONT-FAMILY: 宋体">应用程序等</span><span lang="EN-US" style="COLOR: black">)</span><span style="COLOR: black; FONT-FAMILY: 宋体">。</span></p></div>
<!-- page -->
<div class="page" style="text-align: center">
<a href="100165435.htm">上一页</a> <a href="index.html">首页</a> <a href="100165437.htm">下一页</a>
</div>
<div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
<div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
图书导读
</div>
<div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
<!--导读-->
<h1 id="divCurrentNode2" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165436.htm'><font color='red'>14.4 安全策略的管理</font></a></h1>
<div id="divRealteNod2" style="padding-left: 2px">
<div style='float:left;width:49%'>·<a href='100165433.htm'>14.3.2 Windows Principal</a></div><div style='float:right;width:49%'>·<a href='100165434.htm'>14.3.3 角色</a></div><div style='float:left;width:49%'>·<a href='100165435.htm'>14.3.4 声明基于角色的安全性</a></div><div style='float:right;width:49%'>·<a href='100165437.htm'>14.4.1 安全配置文件</a></div><div style='float:left;width:49%'>·<a href='100165438.htm'>14.4.2 代码组和权限的管理</a></div><div style='float:right;width:49%'>·<a href='100165439.htm'>14.4.3 安全性的启用和禁用</a></div></div>
</div>
</div>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?