~ubuntu-branches/ubuntu/raring/libvirt/raring

« back to all changes in this revision

Viewing changes to src/security/virt-aa-helper.c

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2012-12-05 16:43:04 UTC
  • mfrom: (223.1.4 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121205164304-i4heapilb4ogcgzl
Tags: 1.0.0-0ubuntu4
* debian/patches/apparmor-allow-hugepages: update apparmor policies to
  allow use of hugepages.  (LP: #646468)
* debian/patches/vnc-socket.patch: If a vnc socket is in use, add it's
  path to the apparmor policy.  (LP: #1069534)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1002
1002
        if (vah_add_file(&buf, ctl->def->os.loader, "r") != 0)
1003
1003
            goto clean;
1004
1004
 
 
1005
    for (i = 0; i < ctl->def->ngraphics; i++) {
 
1006
        if (ctl->def->graphics[i]->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC &&
 
1007
                    ctl->def->graphics[i]->data.vnc.socket &&
 
1008
                    vah_add_file(&buf, ctl->def->graphics[i]->data.vnc.socket, "rw"))
 
1009
                goto clean;
 
1010
    }
 
1011
 
1005
1012
    if (ctl->def->ngraphics == 1 &&
1006
1013
        ctl->def->graphics[0]->type == VIR_DOMAIN_GRAPHICS_TYPE_SDL)
1007
1014
        if (vah_add_file(&buf, ctl->def->graphics[0]->data.sdl.xauth,