Skip to contentSkip to conversation

Manual Page for audit2allow

DISCUSSION Manoj Srivastava 2 participants 2 messages Jan 20, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

While packaging policycoreutils for Debian, I've come across a
couple of utilities without manual pages (which is against d4ebian technical policy), so I'm writing up pages as I go along. Here is a manual page for audit2allow; perhaps it can be incorporated upstream.

manoj

Signature · 5 lines
-- 
Being owned by someone used to be called slavery -- now it's called
commitment.
Manoj Srivastava   <[email protected]>    <[email protected]> 
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C
#1 lore raw
Quoted 4 lines · Manoj Srivastava

While packaging policycoreutils for Debian, I've come across a
couple of utilities without manual pages (which is against d4ebian technical policy), so I'm writing up pages as I go along. Here is a manual page for audit2allow; perhaps it can be incorporated upstream.

Thanks, I am merging this with the modifications below.

Quoted 2 lines

______________________________________________________________________

Signature · 2 lines
Stephen Smalley <[email protected]>
National Security Agency

Index: policycoreutils/audit2allow/Makefile
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/policycoreutils/audit2allow/Makefile,v retrieving revision 1.1

audit2allow/Makefile +3 -0
diff -u -r1.1 Makefile
@@ -1,6 +1,7 @@
 # Installation directories.
 PREFIX ?= ${DESTDIR}/usr
 BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man
 LOCALEDIR ?= /usr/share/locale
 
 TARGETS=audit2allow
@@ -10,6 +11,8 @@
 install: all
 	-mkdir -p $(BINDIR)
 	install -m 755 $(TARGETS) $(BINDIR)
+	-mkdir -p $(MANDIR)/man1
+	install -m 644 audit2allow.1 $(MANDIR)/man1/
 
 clean:
 

Index: policycoreutils/audit2allow/audit2allow.1
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/policycoreutils/audit2allow/audit2allow.1,v retrieving revision 1.1

audit2allow/audit2allow.1 +14 -8
diff -u -r1.1 audit2allow.1
@@ -41,8 +41,7 @@
 Turn on verbose output
 .TP
 .B "\-l"
-read input only after last 
-.BI \"load_policy\"
+read input only after last policy reload
 .TP
 .B "\-i <inputfile>"
 read input from 
@@ -55,15 +54,22 @@
 .PP
 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 policy, would ahve allowed those operations to
-succeed. 
+which, if loaded into policy, 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 declaration to satisfy an existing
+constraint, adding a role allow rule, or modifying a constraint.
 .PP
-Care must be exercised while acting on the outpu of this utility to
-ensure that the operations being permitted do not pose a secureity
-threat. Often it is better to define new domains, or make other
+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.
+changes recommended by this utility.   Certain permission denials are 
+not fatal to the application, in which case it may be preferable to
+simply suppress logging of the denial via a 'dontaudit' rule rather than
+an 'allow' rule.
+.PP
 .SH AUTHOR
 This manual page was written by 
 .I Manoj Srivastava <[email protected]>,