~calebcase/+junk/refpolicy

« back to all changes in this revision

Viewing changes to policy/modules/services/uucp.if

  • Committer: Caleb Case
  • Date: 2008-08-25 21:38:11 UTC
  • Revision ID: ccase@shiva-20080825213811-mtbyp70e4ltsu7kt
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## <summary>Unix to Unix Copy</summary>
 
2
 
 
3
########################################
 
4
## <summary>
 
5
##      Allow the specified domain to append
 
6
##      to uucp log files.
 
7
## </summary>
 
8
## <param name="domain">
 
9
##      <summary>
 
10
##      Domain allowed access.
 
11
##      </summary>
 
12
## </param>
 
13
#
 
14
interface(`uucp_append_log',`
 
15
        gen_require(`
 
16
                type uucpd_log_t;
 
17
        ')
 
18
 
 
19
        logging_search_logs($1)
 
20
        allow $1 uucpd_log_t:dir list_dir_perms;
 
21
        append_files_pattern($1,uucpd_log_t,uucpd_log_t)
 
22
')
 
23
 
 
24
########################################
 
25
## <summary>
 
26
##      Create, read, write, and delete uucp spool files.
 
27
## </summary>
 
28
## <param name="domain">
 
29
##      <summary>
 
30
##      Domain allowed access.
 
31
##      </summary>
 
32
## </param>
 
33
#
 
34
interface(`uucp_manage_spool',`
 
35
        gen_require(`
 
36
                type uucpd_spool_t;
 
37
        ')
 
38
 
 
39
        files_search_spool($1)
 
40
        manage_dirs_pattern($1,uucpd_spool_t,uucpd_spool_t)
 
41
        manage_files_pattern($1,uucpd_spool_t,uucpd_spool_t)
 
42
        manage_lnk_files_pattern($1,uucpd_spool_t,uucpd_spool_t)
 
43
')
 
44
 
 
45
########################################
 
46
## <summary>
 
47
##      Execute the master uux program in the
 
48
##      uux_t domain.
 
49
## </summary>
 
50
## <param name="domain">
 
51
##      <summary>
 
52
##      Domain allowed access.
 
53
##      </summary>
 
54
## </param>
 
55
#
 
56
interface(`uucp_domtrans_uux',`
 
57
        gen_require(`
 
58
                type uux_t, uux_exec_t;
 
59
        ')
 
60
 
 
61
        domtrans_pattern($1,uux_exec_t,uux_t)
 
62
')