AUDIT2ALLOW(1) NSA AUDIT2ALLOW(1)
NAME
audit2allow - generate policy allow rules from logs of denied operations
SYNOPSIS
audit2allow [options]
OPTIONS
--help Print a short usage message
-d Read input from output of /bin/dmesg. Note that audit messages are not
available via dmesg when auditd is running; use -i /var/log/audit/audit.log
instead.
-v Turn on verbose output
-l read input only after last policy reload
-i <inputfile>
read input from <inputfile>
-o <outputfile>
append output to <outputfile>
DESCRIPTION
This utility scans the logs for messages logged when the system denied permission
for operations, and generates a snippet of policy rules which, if loaded into pol-
icy, might have allowed those operations to succeed. However, this utility only
generates Type Enforcement (TE) allow rules. Certain permission denials may
require other kinds of policy changes, e.g. adding an attribute to a type declara-
tion to satisfy an existing constraint, adding a role allow rule, or modifying a
constraint. The audit2why(8) utility may be used to diagnose the reason when it is
unclear.
Care must be exercised while acting on the output of this utility to ensure that
the operations being permitted do not pose a security threat. Often it is better to
define new domains and/or types, or make other structural changes to narrowly allow
an optimal set of operations to succeed, as opposed to blindly implementing the
sometimes broad changes recommended by this utility. Certain permission denials
are not fatal to the application, in which case it may be preferable to simply sup-
press logging of the denial via a ’dontaudit’ rule rather than an ’allow’ rule.
EXAMPLE
$ cd /etc/selinux/$(SELINUXTYPE)/src/policy
$ /usr/bin/audit2allow -i < /var/log/audit/audit.log >> domains/misc/local.te
<review domains/misc/local.te and customize as desired>
$ make load
AUTHOR
This manual page was written by Manoj Srivastava <srivasta AT debian.org>, for the
Debian GNU/Linux system. The audit2allow utility has contributions from several
people, including Justin R. Smith and Yuichi Nakamura.
Security Enhanced Linux January 2005 AUDIT2ALLOW(1)
Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache/1.3.41 (Unix) PHP/5.2.5 mod_perl/1.30 mod_gzip/1.3.26.1a
Under GNU General Public License
2009-01-08 04:46 @38.103.63.58 CrawledBy CCBot/1.0 (+http://www.commoncrawl.org/bot.html)