← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2071303] Re: test_unconfined_userns from ubuntu_qrt_apparmor ApparmorTest failed with N-oem-6.10

 

As in Bug 2071305, the apparmor kernel patches were not yet applied on
-rc4, so this test will fail on this version. They are only present in
-rc7 or Ubuntu-unstable-6.10.0-14.14

-- 
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/2071303

Title:
  test_unconfined_userns from ubuntu_qrt_apparmor ApparmorTest failed
  with N-oem-6.10

Status in QA Regression Testing:
  New
Status in ubuntu-kernel-tests:
  New

Bug description:
  Issue found with N-oem-6.10.0-1004.4

  ubuntu@ivysaur:~/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts$ sudo python3 ./test-apparmor.py -v ApparmorTest.test_unconfined_userns
  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')
  Skipping private tests
  test_unconfined_userns (__main__.ApparmorTest.test_unconfined_userns)
  Test that unconfined userns restrictions are applied ... (enabling userns restrictions) FAIL

  ======================================================================
  FAIL: test_unconfined_userns (__main__.ApparmorTest.test_unconfined_userns)
  Test that unconfined userns restrictions are applied
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py", line 1492, in test_unconfined_userns
      self.assertEqual(expected, rc, result + report)
  AssertionError: 0 != 1 : Got exit code 1, expected 0
  sysctl: cannot stat /proc/sys/kernel/apparmor_restrict_unprivileged_userns: No such file or directory

  
  ----------------------------------------------------------------------
  Ran 1 test in 0.114s

  FAILED (failures=1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/2071303/+subscriptions



References