[U/F/E/D/B/X] UBUNTU: [Packaging]: config-check: some enforcement is ignored
Thadeu Lima de Souza Cascardo
cascardo at canonical.com
Thu Dec 19 18:29:51 UTC 2019
Whenever config-check finds an entry like:
CONFIG_VFIO mark<ENFORCED>note<LP#1636733>
it will consider mark<ENFORCED>note as the option name, as the regexp allows
any characters not in the whitespace class (\S). By using a class like [^\s<],
that is, not whitespace and not '<', it will be correctly parsed.
We could fix the entries that have this problem, but fixing the parser is more
robust.
Ignore: yes
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at canonical.com>
---
debian/scripts/config-check | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/scripts/config-check b/debian/scripts/config-check
index 843f5999006b..95edd39dc407 100755
--- a/debian/scripts/config-check
+++ b/debian/scripts/config-check
@@ -113,7 +113,7 @@ for $config (keys %annot) {
$options = $annot{$config};
$policy = undef;
- while ($options =~ /\s*(\S+)<(.*?)?>/g) {
+ while ($options =~ /\s*([^\s<]+)<(.*?)?>/g) {
($option, $value) = ($1, $2);
if ($option eq 'mark' && $value eq 'ENFORCED') {
--
2.24.0
More information about the kernel-team
mailing list