Public bug reported:
In ubuntu_qrt_kernel_security, for linux-intel-6.11.0-1003, test case
KernelSecurityTest.test_092_hardlink_restriction failed with:
19:26:08 ERROR| [stderr] FAIL: test_092_hardlink_restriction
(__main__.KernelSecurityTest.test_092_hardlink_restriction)
19:26:08 ERROR| [stderr] Hardlink disallowed for unreadable/unwritable sources
19:26:08 ERROR| [stderr]
----------------------------------------------------------------------
19:26:08 ERROR| [stderr] Traceback (most recent call last):
19:26:08 ERROR| [stderr] 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
19:26:08 ERROR| [stderr] self._check_hardlinks(hardened=expected)
19:26:08 ERROR| [stderr] File
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py",
line 997, in _check_hardlinks
19:26:08 ERROR| [stderr] self.assertShellExitEquals(0, ['sudo', '-u',
os.environ['SUDO_USER'], 'cat', '%s/null' % (tmpdir)])
19:26:08 ERROR| [stderr] File
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py",
line 1332, in assertShellExitEquals
19:26:08 ERROR| [stderr] self.assertEqual(expected, rc, msg + result +
report)
19:26:08 ERROR| [stderr] AssertionError: 0 != 1 : Got exit code 1, expected 0
19:26:08 ERROR| [stderr] Command: 'sudo', '-u', 'ubuntu', 'cat',
'/tmp/hardlinks-d09q1t0r/null'
19:26:08 ERROR| [stderr] Output:
19:26:08 ERROR| [stderr] cat: /tmp/hardlinks-d09q1t0r/null: Permission denied
** Affects: linux-intel (Ubuntu)
Importance: Undecided
Status: New
** Affects: linux-intel (Ubuntu Oracular)
Importance: Undecided
Status: New
** Also affects: linux-intel (Ubuntu Oracular)
Importance: Undecided
Status: New
** Description changed:
In ubuntu_qrt_kernel_security, for linux-intel-6.11.0-1003, test case
- ubuntu_qrt_kernel_security.KernelSecurityTest.test_032_dev_kmem failed
- with:
+ KernelSecurityTest.test_092_hardlink_restriction failed with:
19:26:08 ERROR| [stderr] FAIL: test_092_hardlink_restriction
(__main__.KernelSecurityTest.test_092_hardlink_restriction)
19:26:08 ERROR| [stderr] Hardlink disallowed for unreadable/unwritable sources
19:26:08 ERROR| [stderr]
----------------------------------------------------------------------
19:26:08 ERROR| [stderr] Traceback (most recent call last):
19:26:08 ERROR| [stderr] 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
19:26:08 ERROR| [stderr] self._check_hardlinks(hardened=expected)
19:26:08 ERROR| [stderr] File
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/./test-kernel-security.py",
line 997, in _check_hardlinks
19:26:08 ERROR| [stderr] self.assertShellExitEquals(0, ['sudo', '-u',
os.environ['SUDO_USER'], 'cat', '%s/null' % (tmpdir)])
19:26:08 ERROR| [stderr] File
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_kernel_security/src/qa-regression-testing/scripts/testlib.py",
line 1332, in assertShellExitEquals
19:26:08 ERROR| [stderr] self.assertEqual(expected, rc, msg + result +
report)
19:26:08 ERROR| [stderr] AssertionError: 0 != 1 : Got exit code 1, expected 0
19:26:08 ERROR| [stderr] Command: 'sudo', '-u', 'ubuntu', 'cat',
'/tmp/hardlinks-d09q1t0r/null'
19:26:08 ERROR| [stderr] Output:
19:26:08 ERROR| [stderr] cat: /tmp/hardlinks-d09q1t0r/null: Permission denied
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2088065
Title:
hardlink permission denied in selftests
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-intel/+bug/2088065/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs