← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2083823] Re: test_092_hardlink_restriction from ubuntu_qrt_kernel_security failed on Oracular (Permission denied)

 

Fix confirmed, hints removed. Closing this bug.
Thanks!

** Also affects: qa-regression-testing
   Importance: Undecided
       Status: New

** Changed in: qa-regression-testing
       Status: New => Fix Released

** Changed in: ubuntu-kernel-tests
     Assignee: (unassigned) => Koichiro Den (koichiroden)

** Changed in: ubuntu-kernel-tests
       Status: New => Fix Released

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

Title:
   test_092_hardlink_restriction from ubuntu_qrt_kernel_security failed
  on Oracular (Permission denied)

Status in QA Regression Testing:
  Fix Released
Status in ubuntu-kernel-tests:
  Fix Released

Bug description:
  Issue found on Openstack amd64/arm64/ppc64el with Oracular since
  6.11.0-5.5 in d2024.08.12.

  It's worthy to note that with 6.11.0-4.4, only ARM64 has failed with
  this test, AMD64 and PPC64EL are good.

  Test log:
   Running 'python3 ./test-kernel-security.py -v KernelSecurityTest.test_092_hardlink_restriction'
   Running test: './test-kernel-security.py' distro: 'Ubuntu 24.10' kernel: '6.11.0-8.8 (Ubuntu 6.11.0-8.8-generic 6.11.0)' arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
   test_092_hardlink_restriction (__main__.KernelSecurityTest.test_092_hardlink_restriction)
   Hardlink disallowed for unreadable/unwritable sources ... FAIL
   
   ======================================================================
   FAIL: test_092_hardlink_restriction (__main__.KernelSecurityTest.test_092_hardlink_restriction)
   Hardlink disallowed for unreadable/unwritable sources
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py", line 1055, in test_092_hardlink_restriction
       self._check_hardlinks(hardened=expected)
     File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py", line 997, in _check_hardlinks
       self.assertShellExitEquals(0, ['sudo', '-u', os.environ['SUDO_USER'], 'cat', '%s/null' % (tmpdir)])
     File "/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py", line 1332, in assertShellExitEquals
       self.assertEqual(expected, rc, msg + result + report) 
   AssertionError: 0 != 1 : Got exit code 1, expected 0
   Command: 'sudo', '-u', 'ubuntu', 'cat', '/tmp/hardlinks-japxq6mo/null'
   Output:
   cat: /tmp/hardlinks-japxq6mo/null: Permission denied
   
   
   ----------------------------------------------------------------------
   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/2083823/+subscriptions



References