~ubuntu-branches/ubuntu/natty/refpolicy-ubuntu/natty

« back to all changes in this revision

Viewing changes to policy/modules/roles/webadm.if

  • Committer: Bazaar Package Importer
  • Author(s): Caleb Case
  • Date: 2009-10-19 01:48:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091019014839-0rpi67ygkrjya30k
Tags: 0.2.20090730-0ubuntu1
* Updated to upstream release 2.20090730
* Handle Upstart direct execution of daemons.
* Pre-depend on selinux to ensure that the trigger is handled (LP: #434084).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## <summary>Web administrator role</summary>
 
2
 
 
3
########################################
 
4
## <summary>
 
5
##      Change to the web administrator role.
 
6
## </summary>
 
7
## <param name="role">
 
8
##      <summary>
 
9
##      Role allowed access.
 
10
##      </summary>
 
11
## </param>
 
12
## <rolecap/>
 
13
#
 
14
interface(`webadm_role_change',`
 
15
        gen_require(`
 
16
                role webadm_r;
 
17
        ')
 
18
 
 
19
        allow $1 webadm_r;
 
20
')
 
21
 
 
22
########################################
 
23
## <summary>
 
24
##      Change from the web administrator role.
 
25
## </summary>
 
26
## <desc>
 
27
##      <p>
 
28
##      Change from the web administrator role to
 
29
##      the specified role.
 
30
##      </p>
 
31
##      <p>
 
32
##      This is an interface to support third party modules
 
33
##      and its use is not allowed in upstream reference
 
34
##      policy.
 
35
##      </p>
 
36
## </desc>
 
37
## <param name="role">
 
38
##      <summary>
 
39
##      Role allowed access.
 
40
##      </summary>
 
41
## </param>
 
42
## <rolecap/>
 
43
#
 
44
interface(`webadm_role_change_to',`
 
45
        gen_require(`
 
46
                role webadm_r;
 
47
        ')
 
48
 
 
49
        allow webadm_r $1;
 
50
')