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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2010-04-22 17:10:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100422171043-khrw2m21gser7icb
Tags: 0.2.20091117-0ubuntu1
* New upstream release, converted to source format 3.
* Updated Ubuntu-specific patches thanks to Steve Lawrence (LP: #568744).
* Extracted Makefile change to debian/patches/bashisms.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
########################################
63
63
## <summary>
 
64
##      Allow domain to attach to virt TUN devices
 
65
## </summary>
 
66
## <param name="domain">
 
67
##      <summary>
 
68
##      Domain allowed access.
 
69
##      </summary>
 
70
## </param>
 
71
#
 
72
interface(`virt_attach_tun_iface',`
 
73
        gen_require(`
 
74
                type virtd_t;
 
75
        ')
 
76
 
 
77
        allow $1 virtd_t:tun_socket relabelfrom;
 
78
        allow $1 self:tun_socket relabelto;
 
79
')
 
80
 
 
81
########################################
 
82
## <summary>
64
83
##      Read virt config files.
65
84
## </summary>
66
85
## <param name="domain">