📄 mac.html
字号:
<!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><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>Mandatory Access Control</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD 使用手册" href="index.html" /><link rel="UP" title="系统管理" href="system-administration.html" /><link rel="PREVIOUS" title="FreeBSD Security Advisories"href="security-advisories.html" /><link rel="NEXT" title="Key Terms in this Chapter" href="mac-inline-glossary.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /><meta http-equiv="Content-Type" content="text/html; charset=GB2312" /></head><body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD 使用手册</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="security-advisories.html"accesskey="P">后退</a></td><td width="80%" align="center" valign="bottom"></td><td width="10%" align="right" valign="bottom"><a href="mac-inline-glossary.html"accesskey="N">前进</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="CHAPTER"><h1><a id="MAC" name="MAC"></a>章 15. Mandatory Access Control</h1><div class="TOC"><dl><dt><b>目录</b></dt><dt>15.1. <a href="mac.html#MAC-SYNOPSIS">Synopsis</a></dt><dt>15.2. <a href="mac-inline-glossary.html">Key Terms in this Chapter</a></dt><dt>15.3. <a href="mac-initial.html">Explanation of MAC</a></dt><dt>15.4. <a href="mac-understandlabel.html">Understanding MAC Labels</a></dt><dt>15.5. <a href="mac-modules.html">Module Configuration</a></dt><dt>15.6. <a href="mac-bsdextended.html">The MAC bsdextended Module</a></dt><dt>15.7. <a href="mac-ifoff.html">The MAC ifoff Module</a></dt><dt>15.8. <a href="mac-portacl.html">The MAC portacl Module</a></dt><dt>15.9. <a href="mac-labelingpolicies.html">MAC Policies with LabelingFeatures</a></dt><dt>15.10. <a href="mac-partition.html">The MAC partition Module</a></dt><dt>15.11. <a href="mac-mls.html">The MAC Multi-Level Security Module</a></dt><dt>15.12. <a href="mac-biba.html">The MAC Biba Module</a></dt><dt>15.13. <a href="mac-lomac.html">The MAC LOMAC Module</a></dt><dt>15.14. <a href="mac-implementing.html">Implementing a Secure Environment withMAC</a></dt><dt>15.15. <a href="mac-examplehttpd.html">Another Example: Using MAC to Constrain a WebServer</a></dt><dt>15.16. <a href="mac-troubleshoot.html">Troubleshooting the MAC Framework</a></dt></dl></div><i class="AUTHORGROUP"><span class="CONTRIB">Written by</span> Tom Rhodes.</i> <div class="SECT1"><h1 class="SECT1"><a id="MAC-SYNOPSIS" name="MAC-SYNOPSIS">15.1. Synopsis</a></h1><p>FreeBSD 5.X introduced new security extensions from the TrustedBSD project basedon the <span class="TRADEMARK">POSIX</span>®.1e draft. Two of the most significantnew security mechanisms are file system Access Control Lists (<acronymclass="ACRONYM">ACLs</acronym>) and Mandatory Access Control (<acronymclass="ACRONYM">MAC</acronym>). Mandatory Access Control allows new access controlmodules to be loaded, implementing new security policies. Some provide protections of anarrow subset of the system, hardening a particular service, while others providecomprehensive labeled security across all subjects and objects. The mandatory part of thedefinition comes from the fact that the enforcement of the controls is done byadministrators and the system, and is not left up to the discretion of users as is donewith discretionary access control (<acronym class="ACRONYM">DAC</acronym>, the standardfile and System V IPC permissions on FreeBSD.</p><p>This chapter will focus on the Mandatory Access Control Framework (MAC Framework), anda set of pluggable policy modules implementing various security policies.</p><p>After reading this chapter, you will know:</p><ul><li><p>What <acronym class="ACRONYM">MAC</acronym> modules are currently included in FreeBSDand their associated policies.</p></li><li><p>What <acronym class="ACRONYM">MAC</acronym> policies are capable of implementing, thedifference between a label and non-labeled policy.</p></li><li><p>How to efficiently configure a system to use the <acronymclass="ACRONYM">MAC</acronym> framework.</p></li><li><p>How to configure the different policies used by the <acronymclass="ACRONYM">MAC</acronym> modules.</p></li><li><p>How to implement a more secure environment using the <acronymclass="ACRONYM">MAC</acronym> framework and the examples shown.</p></li><li><p>How to test the <acronym class="ACRONYM">MAC</acronym> configuration to ensure theframework has been properly implemented.</p></li></ul><p>Before reading this chapter, you should:</p><ul><li><p>Understand <span class="TRADEMARK">UNIX</span>® and FreeBSD basics (<ahref="basics.html">µÚ 3 章</a>).</p></li><li><p>Be familiar with the basics of kernel configuration/compilation (<ahref="kernelconfig.html">µÚ 8 章</a>).</p></li><li><p>Have some familiarity with security and how it pertains to FreeBSD (<ahref="security.html">µÚ 14 章</a>).</p></li></ul><div class="WARNING"><blockquote class="WARNING"><p><b>警告</b>The improper use of the information in this chapter may cause loss ofaccess to the system, aggravation of users, or inability to access the features providedby <span class="TRADEMARK">XFree86</span>™. More importantly, <acronymclass="ACRONYM">MAC</acronym> should not be relied upon to secure a system. The <acronymclass="ACRONYM">MAC</acronym> framework only augments existing security policy; withoutsound security practices and regular security checks, the system will never be completelysecure.</p><p>It should also be noted that the examples contained within this chapter are just that,examples. It is not recommended that these particular settings be rolled out on aproduction system. Implementing these policies takes a good deal of thought. One who doesnot fully understand exactly how everything works may find him or herself going backthrough the entire system and reconfiguring many files or directories.</p></blockquote></div><div class="SECT2"><h2 class="SECT2"><a id="AEN21574" name="AEN21574">15.1.1. What Will Not BeCovered</a></h2><p>This chapter covers a broad range of security issues relating to the <acronymclass="ACRONYM">MAC</acronym> framework, however, the development of new <acronymclass="ACRONYM">MAC</acronym> policies will not be covered. A number of modules includedwith the <acronym class="ACRONYM">MAC</acronym> framework have specific characteristicswhich are provided for both testing and new module development. These include the <spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">mac_test</span>(4)</span>, <spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">mac_stub</span>(4)</span> and <spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">mac_none</span>(4)</span>modules/policies. For more information on these modules and the various mechanisms theyprovide, please review the manual pages.</p></div></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="security-advisories.html"accesskey="P">后退</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">起点</a></td><td width="33%" align="right" valign="top"><a href="mac-inline-glossary.html"accesskey="N">前进</a></td></tr><tr><td width="33%" align="left" valign="top">FreeBSD Security Advisories</td><td width="34%" align="center" valign="top"><a href="system-administration.html"accesskey="U">上一级</a></td><td width="33%" align="right" valign="top">Key Terms in this Chapter</td></tr></table></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -