Chapter 11 Mandatory Access Control

Table of Contents
11.1 Synopsis
11.2 Key Terms in this Chapter
11.3 Explanation of MAC
11.4 Understanding MAC Labels
11.5 Module Configuration
11.6 The MAC bsdextended Module
11.7 The MAC ifoff Module
11.8 The MAC portacl Module
11.9 MAC Policies with Labeling Features
11.10 The MAC partition Module
11.11 The MAC Multi-Level Security Module
11.12 The MAC Biba Module
11.13 The MAC LOMAC Module
11.14 Implementing a Secure Environment with MAC
11.15 Another Example: Using MAC to Constrain a Web Server
11.16 Troubleshooting the MAC Framework
Written by Tom Rhodes.

11.1 Synopsis

FreeBSD 5.X introduced new security extensions from the TrustedBSD project based on the POSIX®.1e draft. The most important new security mechanisms are file system Access Control Lists (ACLs) and Mandatory Access Control (MAC). Mandatory Access Control allows an administrator to enforce additional security for all subjects (e.g. processes or sockets) and objects (e.g. sockets, file system objects, sysctl nodes) in the system. The mandatory part of the definition comes from the fact that the enforcement of the controls is done by administrators and the system, and is not left up to the discretion of users as is done with discretionary access control (DAC, the normal access method).

This chapter will focus on the Mandatory Access Control framework, hereon referred to simply as MAC.

After reading this chapter, you will know:

Before reading this chapter, you should:

Warning: The improper use of the information in this chapter may cause loss of access to the system, aggravation of users, or inability to access the features provided by XFree86™. More importantly, MAC should not be relied upon to completely secure a system. The MAC framework only augments existing security policy; without sound security practices and regular security checks, the system will never be completely secure.

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 a production system. Implementing these policies takes a good deal of thought. One who does not fully understand exactly how everything works may find him or herself going back through the entire system and reconfiguring many files or directories.

11.1.1 What Will Not Be Covered

This chapter covers a broad range of security issues relating to the MAC framework, however, the development of new MAC policies will not be covered. A number of modules included with the MAC framework have specific characteristics which are provided for both testing and new module development. These include the mac_test(4), mac_stub(4) and mac_none(4) modules/policies. For more information on these modules and the various mechanisms they provide, please review the manual pages.

This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.