test_sock_* from ubuntu_qrt_apparmor ApparmorUnixDomainConnect failed with N-oem-6.10

Bug #2071305 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QA Regression Testing
New
Undecided
Unassigned
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Issue found with N-oem-6.10.0-1004.4

All three test_sock_* tests from ApparmorUnixDomainConnect failed:

* test_sock_dgram
 Running 'python3 ./test-apparmor.py -v ApparmorUnixDomainConnect.test_sock_dgram'
 Running test: './test-apparmor.py' distro: 'Ubuntu 24.04' kernel: '6.10.0-1005.5 (Ubuntu 6.10.0-1005.5-oem 6.10.0-rc4)' arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
 test_sock_dgram (__main__.ApparmorUnixDomainConnect.test_sock_dgram)
 Test mediation of file based SOCK_DGRAM connect ... FAIL

 ======================================================================
 FAIL: test_sock_dgram (__main__.ApparmorUnixDomainConnect.test_sock_dgram)
 Test mediation of file based SOCK_DGRAM connect
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 3580, in test_sock_dgram
     self._test_sock_type('dgram')
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 3576, in _test_sock_type
     self.assertEqual(expected, rc, result + report)
 AssertionError: 1 != 0 : Got exit code 0, expected 1

 ----------------------------------------------------------------------
 Ran 1 test in 0.263s

 FAILED (failures=1)
 Skipping private tests

* test_sock_seqpacket
 Running 'python3 ./test-apparmor.py -v ApparmorUnixDomainConnect.test_sock_seqpacket'
 Running test: './test-apparmor.py' distro: 'Ubuntu 24.04' kernel: '6.10.0-1005.5 (Ubuntu 6.10.0-1005.5-oem 6.10.0-rc4)' arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
 test_sock_seqpacket (__main__.ApparmorUnixDomainConnect.test_sock_seqpacket)
 Test mediation of file based SOCK_SEQPACKET connect ... FAIL

 ======================================================================
 FAIL: test_sock_seqpacket (__main__.ApparmorUnixDomainConnect.test_sock_seqpacket)
 Test mediation of file based SOCK_SEQPACKET connect
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 3584, in test_sock_seqpacket
     self._test_sock_type('seqpacket')
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 3576, in _test_sock_type
     self.assertEqual(expected, rc, result + report)
 AssertionError: 1 != 0 : Got exit code 0, expected 1

 ----------------------------------------------------------------------
 Ran 1 test in 0.286s

 FAILED (failures=1)
 Skipping private tests

* test_sock_stream
 Running 'python3 ./test-apparmor.py -v ApparmorUnixDomainConnect.test_sock_stream'
 Running test: './test-apparmor.py' distro: 'Ubuntu 24.04' kernel: '6.10.0-1005.5 (Ubuntu 6.10.0-1005.5-oem 6.10.0-rc4)' arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
 test_sock_stream (__main__.ApparmorUnixDomainConnect.test_sock_stream)
 Test mediation of file based SOCK_STREAM connect ... FAIL

 ======================================================================
 FAIL: test_sock_stream (__main__.ApparmorUnixDomainConnect.test_sock_stream)
 Test mediation of file based SOCK_STREAM connect
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 3588, in test_sock_stream
     self._test_sock_type('stream')
   File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 3576, in _test_sock_type
     self.assertEqual(expected, rc, result + report)
 AssertionError: 1 != 0 : Got exit code 0, expected 1

 ----------------------------------------------------------------------
 Ran 1 test in 0.264s

 FAILED (failures=1)
 Skipping private tests

Revision history for this message
Georgia Garcia (georgiag) wrote :

The apparmor kernel patches were not yet applied on -rc4, so these tests will fail on this version. They are only present in -rc7 or Ubuntu-unstable-6.10.0-14.14

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.