[Security] Authenticate shared-memory multimodal cache handles (#59357)

Signed-off-by: Clinton Thomas <1033162+KernelClint@users.noreply.github.com>
Co-authored-by: Lucas Bourtoule <35483370+dhalf@users.noreply.github.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
Clinton Thomas
2026-09-30 05:16:26 -07:00
committed by GitHub
co-authored by Lucas Bourtoule Cyrus Leung
parent 72e7874fa6
commit 3d5625cc3c
8 changed files with 574 additions and 41 deletions
+3 -3
View File
@@ -108,10 +108,10 @@ class TestSingleWriterShmRingBuffer(unittest.TestCase):
# Clear the buffer
self.ring_buffer.clear()
# Check that metadata is empty and IDs reset
# Check that metadata is empty and IDs keep increasing
self.assertEqual(len(self.ring_buffer.metadata), 0)
self.assertEqual(self.ring_buffer.monotonic_id_start, 0)
self.assertEqual(self.ring_buffer.monotonic_id_end, 0)
self.assertEqual(self.ring_buffer.monotonic_id_start, 3)
self.assertEqual(self.ring_buffer.monotonic_id_end, 3)
self.assertEqual(self.ring_buffer.data_buffer_start, 0)
self.assertEqual(self.ring_buffer.data_buffer_end, 0)