aa-logprof complained about libvirt include file not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When you try to run aa-logprof on s390x instances (zVM / LPAR), it will complain about:
$ aa-logprof
ERROR: Include file /etc/apparmor.
$ echo $?
1
This is causing test failures in ubuntu_qrt_apparmor tests, for those tests that will call aa-logprof, because of this non-zero return value:
* ApparmorTest.
* ApparmorTest.
* ApparmorTest.
* ApparmorTest.
* ApparmorTestsui
* ApparmorTestsui
One example output:
Running 'python3 ./test-apparmor.py -v ApparmorTest.
Running test: './test-
test_lp652674 (__main_
Test aa-logprof LP: #652674 ... FAIL
======
FAIL: test_lp652674 (__main_
Test aa-logprof LP: #652674
------
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
AssertionError: 0 != 1 : Got exit code 1, expected 0
ERROR: Include file /etc/apparmor.
------
Ran 1 test in 0.777s
FAILED (failures=1)
Skipping private tests
This is not a regression, it's just the ubuntu_qrt_apparmor test granularity improvement (bug 1982439) make it easier to spot this failure.
Take a closer look into /usr/lib/
$ ls
libvirt-
$ cat libvirt-
#
# This profile is for the domain whose UUID matches this file.
#
#include <tunables/global>
profile libvirt-
#include <abstractions/
#include <libvirt/
}
$
The include file here, libvirt-
It seems this /etc/apparmor.
description: | updated |
description: | updated |
summary: |
- aa-logprof complained about include file not found on K-s390x + aa-logprof complained about libvirt include file not found on K-s390x |
tags: | added: 5.15 jammy |
tags: | added: sru-20240108 |
This issue was opened for kinetic and hinted for K/L/M/N,
it does not exist any more in M, K/L EOL.
For N it's failing with a different issue.
Therefore I am going to close this bug and remove the hint.