[selinux-policy: 2446/3172] Additional docs for logging_log_filetrans().

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 22:37:11 UTC 2010


commit 5fb5bf2686e339882546243133c676ed4d0efb2a
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Mon Mar 1 10:38:24 2010 -0500

    Additional docs for logging_log_filetrans().

 policy/modules/system/logging.if |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/policy/modules/system/logging.if b/policy/modules/system/logging.if
index 25843e8..50c6bae 100644
--- a/policy/modules/system/logging.if
+++ b/policy/modules/system/logging.if
@@ -433,6 +433,23 @@ interface(`logging_domtrans_syslog',`
 ##	of the general system log type. To accomplish this goal,
 ##	either the program must be SELinux-aware, or use this interface.
 ##	</p>
+##	<p>
+##	Related interfaces:
+##	</p>
+##	<ul>
+##		<li>logging_log_file()</li>
+##	</ul>
+##	<p>
+##	Example usage with a domain that can create
+##	and append to a private log file stored in the
+##	general directories (e.g., /var/log):
+##	</p>
+##	<p>
+##	type mylogfile_t;
+##	logging_log_file(mylogfile_t)
+##	allow mydomain_t mylogfile_t:file { create_file_perms append_file_perms };
+##	logging_log_filetrans(mydomain_t, mylogfile_t, file)
+##	</p>
 ## </desc>
 ## <param name="domain">
 ##	<summary>


More information about the scm-commits mailing list