summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-04-06 20:34:36 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2010-04-06 20:34:36 +0200
commit4670d2edfb615af94bd9d82d8fd12b7cf8d23b9d (patch)
tree71bbd6a5c86919d9413d927b3be8827754f6329d
parent9aaa47296f60d58cee14a5dec3fa2d9c84ca1494 (diff)
testsuite: Check that our udev probers do not leak key information
This reproduces https://bugs.freedesktop.org/show_bug.cgi?id=27494
-rwxr-xr-xtests/run6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run b/tests/run
index 57b4ee8..26267d1 100755
--- a/tests/run
+++ b/tests/run
@@ -728,6 +728,12 @@ class Luks(UDisksTestCase):
self.assertEqual(ci['mount paths'], '')
self.assertEqual(ci['presentation name'], '')
+ # check that we do not leak key information
+ udev_dump = subprocess.Popen(['udevadm', 'info', '--export-db'],
+ stdout=subprocess.PIPE)
+ out = udev_dump.communicate()[0]
+ self.failIf('essiv:sha' in out, 'key information in udev properties')
+
finally:
# tear down cleartext device
self.partition_iface().LuksLock([])