We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4767d2b commit 0002713Copy full SHA for 0002713
tests/security/secureboot/validate_keylength.pm
@@ -47,11 +47,12 @@ sub get_boot_image_name {
47
die "Unsupported architecture: $arch";
48
}
49
50
-# on any staging builds we always expect 2048 bits keys
51
-# on release builds, for s390x and ppc64le we expect 4096 bits keys
+# on x86_64 and aarch64 we expect 2048 bits keys
+# for s390x and ppc64le we expect 4096 bits keys (except for kernel staging builds)
52
sub get_expected_keylength {
53
- return 2048 if get_var('STAGING');
54
- return get_required_var('ARCH') =~ /s390x|ppc64le/ ? 4096 : 2048;
+ return '2048' unless get_required_var('ARCH') =~ /s390x|ppc64le/;
+ return '(2048|4096)' if get_var('STAGING');
55
+ return '4096';
56
57
58
sub post_fail_hook {
0 commit comments