urce/libvirt/+bug/1927519
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890084
Ioanna Alifieraki (1):
virt-aa-helper: Purge profile if corrupted
src/security/virt-aa-helper.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
--
2.17.1
/bugs/1927519
Signed-off-by: Ioanna Alifieraki
---
src/security/virt-aa-helper.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index 7c21ab9515..218e07bfb0 100644
--- a/src/security/virt-aa
On Thu, Oct 7, 2021 at 10:41 PM Ján Tomko wrote:
>
> On a Thursday in 2021, Ioanna Alifieraki wrote:
> >This commit aims to address the bug reported in [1] and [2].
> >If the profile is corrupted (0-size) the VM cannot be launched.
> >To overcome this check if the profil
a test for the above fix.
[1] https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1927519
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890084
Ioanna Alifieraki (4):
virt-aa-helper: Move create and remove profile into separate functions
virt-aa-helper: Add new purge (-P) option
v
Reorganise create and remove functionality into functions for later
reuse in calls from multiple places.
Signed-off-by: Ioanna Alifieraki
---
src/security/virt-aa-helper.c | 55 ++-
1 file changed, 35 insertions(+), 20 deletions(-)
diff --git a/src/security/virt
Create a corrupt profile and expect to be removed after the test is run.
Signed-off-by: Ioanna Alifieraki
---
tests/meson.build | 1 +
tests/virt-aa-helper-test | 29 +
2 files changed, 30 insertions(+)
diff --git a/tests/meson.build b/tests/meson.build
Currently there is no way to remove the profile file.
This commit provides this functionality (required for next commit).
Signed-off-by: Ioanna Alifieraki
---
src/security/virt-aa-helper.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/security/virt-aa
://bugs.launchpad.net/bugs/1927519
Signed-off-by: Ioanna Alifieraki
---
src/security/virt-aa-helper.c | 23 +++
1 file changed, 23 insertions(+)
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index 5ec0fb8807..5e13b29053 100644
--- a/src/security/virt