~ubuntu-branches/ubuntu/maverick/refpolicy-ubuntu/maverick

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Marshall Miller
  • Date: 2009-03-24 02:17:01 UTC
  • Revision ID: james.westby@ubuntu.com-20090324021701-ost9gewrbluclm5r
Tags: upstream-0.2.20090324
ImportĀ upstreamĀ versionĀ 0.2.20090324

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## <summary>Open AntiVirus scannerdaemon and signature update</summary>
 
2
 
 
3
########################################
 
4
## <summary>
 
5
##      Execute oav_update in the oav_update domain.
 
6
## </summary>
 
7
## <param name="domain">
 
8
##      <summary>
 
9
##      Domain allowed access.
 
10
##      </summary>
 
11
## </param>
 
12
#
 
13
interface(`oav_domtrans_update',`
 
14
        gen_require(`
 
15
                type oav_update_t, oav_update_exec_t;
 
16
        ')
 
17
 
 
18
        corecmd_search_bin($1)
 
19
        domtrans_pattern($1, oav_update_exec_t, oav_update_t)
 
20
')
 
21
 
 
22
########################################
 
23
## <summary>
 
24
##      Execute oav_update in the oav_update domain, and
 
25
##      allow the specified role the oav_update domain.
 
26
## </summary>
 
27
## <param name="domain">
 
28
##      <summary>
 
29
##      Domain allowed access.
 
30
##      </summary>
 
31
## </param>
 
32
## <param name="role">
 
33
##      <summary>
 
34
##      The role to be allowed the oav_update domain.
 
35
##      </summary>
 
36
## </param>
 
37
## <rolecap/>
 
38
#
 
39
interface(`oav_run_update',`
 
40
        gen_require(`
 
41
                type oav_update_t;
 
42
        ')
 
43
 
 
44
        oav_domtrans_update($1)
 
45
        role $2 types oav_update_t;
 
46
')