test_unconfined_userns from ubuntu_qrt_apparmor ApparmorTest failed with N-oem-6.10

Bug #2071303 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

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)

Po-Hsu Lin (cypressyew)
summary: - test_unconfined_userns from ubuntu_qrt_apparmor failed with N-oem-6.10
+ test_unconfined_userns from ubuntu_qrt_apparmor ApparmorTest failed with
+ N-oem-6.10
Revision history for this message
Georgia Garcia (georgiag) wrote :

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

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.