apparmor denies save and restore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Fedora) |
Fix Released
|
High
|
|||
libvirt (Ubuntu) |
Fix Released
|
High
|
Jamie Strandboge | ||
Karmic |
Fix Released
|
High
|
Jamie Strandboge | ||
Lucid |
Won't Fix
|
High
|
Jamie Strandboge | ||
Maverick |
Fix Released
|
High
|
Jamie Strandboge |
Bug Description
The following no longer work:
$ virsh save <vm name> <state file>
$ virsh restart <state file>
The following fixes the problem, at least for saving somewhere in $HOME:
# for save and resume
#include <abstractions/
/bin/dash rmix,
/bin/dd rmix,
/bin/cat rmix,
# 'owner' makes sure we don't overwrite the user's files (ie, if the file
# exists, it must be owned by 'root')
owner @{HOME}/ r,
owner @{HOME}/** rw,
ProblemType: Bug
Architecture: amd64
Date: Wed Oct 21 18:00:31 2009
DistroRelease: Ubuntu 9.10
Package: libvirt-bin 0.7.0-1ubuntu12
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: libvirt
Uname: Linux 2.6.31-14-generic x86_64
Related branches
Changed in libvirt (Fedora): | |
status: | Unknown → In Progress |
Changed in libvirt (Fedora): | |
status: | In Progress → Invalid |
Changed in libvirt (Fedora): | |
status: | Invalid → Unknown |
Changed in libvirt (Ubuntu Maverick): | |
status: | Triaged → In Progress |
milestone: | later → maverick-alpha-2 |
Changed in libvirt (Fedora): | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
This may be better:
# for save and resume private- files-strict>
#include <abstractions/
/bin/dash rmix,
/bin/dd rmix,
/bin/cat rmix,
# 'owner' makes sure we don't overwrite the user's files (ie, if the file
# exists, it must be owned by 'root')
owner @{HOME}/ r,
owner @{HOME}/** rw,
owner /var/tmp/** rw,
owner /var/tmp/ rw,
owner /tmp/** rw,
owner /tmp/ rw,