summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChris PeBenito <cpebenito@tresys.com>2007-08-29 18:14:27 +0000
committerChris PeBenito <cpebenito@tresys.com>2007-08-29 18:14:27 +0000
commit85bec1a669320a32805ff81c91114f7ff2ec14ed (patch)
tree30ee8c7127163a1ac0616b733e1adf2a468182c8 /doc
parent6dd721a686b2d2ad5963cf3be5d405c6b31b7618 (diff)
trunk: fix example.if xml problems
Diffstat (limited to 'doc')
-rw-r--r--doc/example.if17
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/example.if b/doc/example.if
index 48f5bc9b..54d42ae6 100644
--- a/doc/example.if
+++ b/doc/example.if
@@ -1,8 +1,8 @@
## <summary>Myapp example policy</summary>
## <desc>
## <p>
-## More descriptive text about myapp. The <desc>
-## tag can also use <p>, <ul>, and <ol>
+## More descriptive text about myapp. The desc
+## tag can also use p, ul, and ol
## html tags for formatting.
## </p>
## <p>
@@ -21,7 +21,9 @@
## Execute a domain transition to run myapp.
## </summary>
## <param name="domain">
+## <summary>
## Domain allowed to transition.
+## </summary>
## </param>
#
interface(`myapp_domtrans',`
@@ -29,12 +31,7 @@ interface(`myapp_domtrans',`
type myapp_t, myapp_exec_t;
')
- domain_auto_trans($1,myapp_exec_t,myapp_t)
-
- allow $1 myapp_t:fd use;
- allow myapp_t $1:fd use;
- allow $1 myapp_t:fifo_file rw_file_perms;
- allow $1 myapp_t:process sigchld;
+ domtrans_pattern($1,myapp_exec_t,myapp_t)
')
########################################
@@ -42,7 +39,9 @@ interface(`myapp_domtrans',`
## Read myapp log files.
## </summary>
## <param name="domain">
+## <summary>
## Domain allowed to read the log files.
+## </summary>
## </param>
#
interface(`myapp_read_log',`
@@ -51,5 +50,5 @@ interface(`myapp_read_log',`
')
logging_search_logs($1)
- allow $1 myapp_log_t:file r_file_perms;
+ allow $1 myapp_log_t:file read_file_perms;
')