← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 1939022] Re: test_entries_since_login(_verbose) in test-aa-notify.py of test_utils_testsuite(3) from ubuntu_qrt_apparmor failed with AppArmor denials string unmatch

 

MR to add it to QRT: 
https://code.launchpad.net/~georgiag/qa-regression-testing/+git/qa-regression-testing/+merge/465526

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/1939022

Title:
  test_entries_since_login(_verbose) in test-aa-notify.py of
  test_utils_testsuite(3) from ubuntu_qrt_apparmor failed with AppArmor
  denials string unmatch

Status in ubuntu-kernel-tests:
  New

Bug description:
  [stderr] === test-aa-notify.py ===
  [stderr] .FF..
  [stderr] ======================================================================
  [stderr] FAIL: test_entries_since_login (__main__.AANotifyTest)
  [stderr] Test showing log entries since last login
  [stderr] ----------------------------------------------------------------------
  [stderr] Traceback (most recent call last):
  [stderr]   File "/tmp/testlib0xopmq_p/source/impish/apparmor-3.0.0/utils/test/test-aa-notify.py", line 204, in test_entries_since_login
  [stderr]     self.assertIn(expected_output_has, output, result + output)
  [stderr] AssertionError: 'AppArmor denials: 10 (since' not found in 'AppArmor denials: 20 (since Fri Jul  2 17:22:04 2021)\n' : Got output "AppArmor denials: 20 (since Fri Jul  2 17:22:04 2021)
  [stderr] ", expected "AppArmor denials: 10 (since"
  [stderr] AppArmor denials: 20 (since Fri Jul  2 17:22:04 2021)
  [stderr] 
  [stderr] 
  [stderr] ======================================================================
  [stderr] FAIL: test_entries_since_login_verbose (__main__.AANotifyTest)
  [stderr] Test showing log entries since last login in verbose mode
  [stderr] ----------------------------------------------------------------------
  [stderr] Traceback (most recent call last):
  [stderr]   File "/tmp/testlib0xopmq_p/source/impish/apparmor-3.0.0/utils/test/test-aa-notify.py", line 280, in test_entries_since_login_verbose
  [stderr]     self.assertIn(expected_output_has, output, result + output)
  [stderr] AssertionError: 'Profile: libreoffice-soffice\nOperation: exec\nName: /bin/uname\nDenied: x\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_inherit\nName: /dev/null\nDenied: w\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /bin/uname\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /lib/x86_64-linux-gnu/ld-2.27.so\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /etc/ld.so.cache\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /lib/x86_64-linux-gnu/libc-2.27.so\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /lib/x86_64-linux-gnu/libc-2.27.so\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /usr/lib/locale/locale-archive\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice\nOperation: exec\nName: /usr/bin/file\nDenied: x\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/usr/bin/file\nOperation: file_mmap\nName: /usr/bin/file\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nAppArmor denials: 10 (since' not found in 'Using log file /tmp/test-aa-notify-i_k4xcrz\nShowing entries since ubuntu logged in\n\nProfile: libreoffice-soffice\nOperation: exec\nName: /bin/uname\nDenied: x\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_inherit\nName: /dev/null\nDenied: w\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /bin/uname\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /lib/x86_64-linux-gnu/ld-2.27.so\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /etc/ld.so.cache\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /lib/x86_64-linux-gnu/libc-2.27.so\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /lib/x86_64-linux-gnu/libc-2.27.so\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /usr/lib/locale/locale-archive\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice\nOperation: exec\nName: /usr/bin/file\nDenied: x\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/usr/bin/file\nOperation: file_mmap\nName: /usr/bin/file\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice\nOperation: exec\nName: /bin/uname\nDenied: x\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_inherit\nName: /dev/null\nDenied: w\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /bin/uname\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /lib/x86_64-linux-gnu/ld-2.27.so\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /etc/ld.so.cache\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /lib/x86_64-linux-gnu/libc-2.27.so\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: file_mmap\nName: /lib/x86_64-linux-gnu/libc-2.27.so\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/bin/uname\nOperation: open\nName: /usr/lib/locale/locale-archive\nDenied: r\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice\nOperation: exec\nName: /usr/bin/file\nDenied: x\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nProfile: libreoffice-soffice//null-/usr/bin/file\nOperation: file_mmap\nName: /usr/bin/file\nDenied: rm\nLogfile: /tmp/test-aa-notify-i_k4xcrz\n\nAppArmor denials: 20 (since Fri Jul  2 17:22:04 2021)\nFor more information, please see: https://wiki.ubuntu.com/DebuggingApparmor\n' : Got output "Using log file /tmp/test-aa-notify-i_k4xcrz
  [stderr] Showing entries since ubuntu logged in
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /bin/uname
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_inherit
  [stderr] Name: /dev/null
  [stderr] Denied: w
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /bin/uname
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/ld-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /etc/ld.so.cache
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /usr/lib/locale/locale-archive
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /usr/bin/file
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/usr/bin/file
  [stderr] Operation: file_mmap
  [stderr] Name: /usr/bin/file
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /bin/uname
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_inherit
  [stderr] Name: /dev/null
  [stderr] Denied: w
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /bin/uname
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/ld-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /etc/ld.so.cache
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /usr/lib/locale/locale-archive
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /usr/bin/file
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/usr/bin/file
  [stderr] Operation: file_mmap
  [stderr] Name: /usr/bin/file
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] AppArmor denials: 20 (since Fri Jul  2 17:22:04 2021)
  [stderr] For more information, please see: https://wiki.ubuntu.com/DebuggingApparmor
  [stderr] ", expected "Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /bin/uname
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_inherit
  [stderr] Name: /dev/null
  [stderr] Denied: w
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /bin/uname
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/ld-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /etc/ld.so.cache
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /usr/lib/locale/locale-archive
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /usr/bin/file
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/usr/bin/file
  [stderr] Operation: file_mmap
  [stderr] Name: /usr/bin/file
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] AppArmor denials: 10 (since"
  [stderr] Using log file /tmp/test-aa-notify-i_k4xcrz
  [stderr] Showing entries since ubuntu logged in
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /bin/uname
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_inherit
  [stderr] Name: /dev/null
  [stderr] Denied: w
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /bin/uname
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/ld-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /etc/ld.so.cache
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /usr/lib/locale/locale-archive
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /usr/bin/file
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/usr/bin/file
  [stderr] Operation: file_mmap
  [stderr] Name: /usr/bin/file
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /bin/uname
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_inherit
  [stderr] Name: /dev/null
  [stderr] Denied: w
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /bin/uname
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/ld-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /etc/ld.so.cache
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: file_mmap
  [stderr] Name: /lib/x86_64-linux-gnu/libc-2.27.so
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/bin/uname
  [stderr] Operation: open
  [stderr] Name: /usr/lib/locale/locale-archive
  [stderr] Denied: r
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice
  [stderr] Operation: exec
  [stderr] Name: /usr/bin/file
  [stderr] Denied: x
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] Profile: libreoffice-soffice//null-/usr/bin/file
  [stderr] Operation: file_mmap
  [stderr] Name: /usr/bin/file
  [stderr] Denied: rm
  [stderr] Logfile: /tmp/test-aa-notify-i_k4xcrz
  [stderr] 
  [stderr] AppArmor denials: 20 (since Fri Jul  2 17:22:04 2021)
  [stderr] For more information, please see: https://wiki.ubuntu.com/DebuggingApparmor
  [stderr] 
  [stderr]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1939022/+subscriptions