[PATCH v2 0/1] virt-aa-helper: Remove corrupted profile

2021-11-02 Thread Ioanna Alifieraki
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

[PATCH v2 1/1] virt-aa-helper: Purge profile if corrupted

2021-11-02 Thread Ioanna Alifieraki
/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

Re: [PATCH 3/4] virt-aa-helper: Purge profile if corrupted

2021-10-20 Thread Ioanna Alifieraki
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

[PATCH 0/4] virt-aa-helper: Add new option to remove corrupted

2021-10-07 Thread Ioanna Alifieraki
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

[PATCH 1/4] virt-aa-helper: Move create and remove profile into separate functions

2021-10-07 Thread Ioanna Alifieraki
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

[PATCH 4/4] virt-aa-helper: test: add test for new option -P

2021-10-07 Thread Ioanna Alifieraki
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

[PATCH 2/4] virt-aa-helper: Add new purge (-P) option

2021-10-07 Thread Ioanna Alifieraki
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

[PATCH 3/4] virt-aa-helper: Purge profile if corrupted

2021-10-07 Thread Ioanna Alifieraki
://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