Skip to content

Commit

Permalink
trunk: fix example.if xml problems
Browse files Browse the repository at this point in the history
  • Loading branch information
pebenito committed Aug 29, 2007
1 parent 6dd721a commit 85bec1a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions doc/example.if
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -21,28 +21,27 @@
## Execute a domain transition to run myapp.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`myapp_domtrans',`
gen_require(`
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)
')

########################################
## <summary>
## Read myapp log files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to read the log files.
## </summary>
## </param>
#
interface(`myapp_read_log',`
Expand All @@ -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;
')

0 comments on commit 85bec1a

Please sign in to comment.