* [[PATCH] cve-check.bbclass: don't skip scanning if file not found
@ 2021-02-15 22:41 akuster
2021-02-18 16:50 ` [OE-core] " Ross Burton
0 siblings, 1 reply; 3+ messages in thread
From: akuster @ 2021-02-15 22:41 UTC (permalink / raw)
To: openembedded-core
This helps avoid these errors:
ERROR: lockdev-1_1.0.3-r0 do_cve_check: File Not found: /home/build/builds/master/tmp/work/core2-64-poky-linux/lockdev/1_1.0.3-r0/lockdev_1.0.3-1.6.diff
We should continuing to scan other applied patches for CVE info.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
meta/classes/cve-check.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 1bed815d8e4..e56366579d1 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -186,8 +186,8 @@ def get_patches_cves(d):
patch_file = bb.fetch.decodeurl(url)[2]
if not os.path.isfile(patch_file):
- bb.error("File Not found: %s" % patch_file)
- raise FileNotFoundError
+ bb.warn("File Not found: %s" % patch_file)
+ continue
# Check patch file name for CVE ID
fname_match = cve_file_name_match.search(patch_file)
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [[PATCH] cve-check.bbclass: don't skip scanning if file not found
2021-02-15 22:41 [[PATCH] cve-check.bbclass: don't skip scanning if file not found akuster
@ 2021-02-18 16:50 ` Ross Burton
2021-02-18 20:19 ` akuster
0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2021-02-18 16:50 UTC (permalink / raw)
To: akuster; +Cc: OE-core
Why is the file not found though?
Ross
On Mon, 15 Feb 2021 at 22:41, akuster <akuster808@gmail.com> wrote:
>
> This helps avoid these errors:
> ERROR: lockdev-1_1.0.3-r0 do_cve_check: File Not found: /home/build/builds/master/tmp/work/core2-64-poky-linux/lockdev/1_1.0.3-r0/lockdev_1.0.3-1.6.diff
>
> We should continuing to scan other applied patches for CVE info.
>
> Signed-off-by: Armin Kuster <akuster808@gmail.com>
> ---
> meta/classes/cve-check.bbclass | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
> index 1bed815d8e4..e56366579d1 100644
> --- a/meta/classes/cve-check.bbclass
> +++ b/meta/classes/cve-check.bbclass
> @@ -186,8 +186,8 @@ def get_patches_cves(d):
> patch_file = bb.fetch.decodeurl(url)[2]
>
> if not os.path.isfile(patch_file):
> - bb.error("File Not found: %s" % patch_file)
> - raise FileNotFoundError
> + bb.warn("File Not found: %s" % patch_file)
> + continue
>
> # Check patch file name for CVE ID
> fname_match = cve_file_name_match.search(patch_file)
> --
> 2.25.1
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [[PATCH] cve-check.bbclass: don't skip scanning if file not found
2021-02-18 16:50 ` [OE-core] " Ross Burton
@ 2021-02-18 20:19 ` akuster
0 siblings, 0 replies; 3+ messages in thread
From: akuster @ 2021-02-18 20:19 UTC (permalink / raw)
To: Ross Burton; +Cc: OE-core
On 2/18/21 8:50 AM, Ross Burton wrote:
> Why is the file not found though?
its downloaded there for not in the WORKDIR
-armin
>
> Ross
>
> On Mon, 15 Feb 2021 at 22:41, akuster <akuster808@gmail.com> wrote:
>> This helps avoid these errors:
>> ERROR: lockdev-1_1.0.3-r0 do_cve_check: File Not found: /home/build/builds/master/tmp/work/core2-64-poky-linux/lockdev/1_1.0.3-r0/lockdev_1.0.3-1.6.diff
>>
>> We should continuing to scan other applied patches for CVE info.
>>
>> Signed-off-by: Armin Kuster <akuster808@gmail.com>
>> ---
>> meta/classes/cve-check.bbclass | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
>> index 1bed815d8e4..e56366579d1 100644
>> --- a/meta/classes/cve-check.bbclass
>> +++ b/meta/classes/cve-check.bbclass
>> @@ -186,8 +186,8 @@ def get_patches_cves(d):
>> patch_file = bb.fetch.decodeurl(url)[2]
>>
>> if not os.path.isfile(patch_file):
>> - bb.error("File Not found: %s" % patch_file)
>> - raise FileNotFoundError
>> + bb.warn("File Not found: %s" % patch_file)
>> + continue
>>
>> # Check patch file name for CVE ID
>> fname_match = cve_file_name_match.search(patch_file)
>> --
>> 2.25.1
>>
>>
>>
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-18 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 22:41 [[PATCH] cve-check.bbclass: don't skip scanning if file not found akuster
2021-02-18 16:50 ` [OE-core] " Ross Burton
2021-02-18 20:19 ` akuster
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.