-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Wiegand
Sent: Friday, September 12, 2008 12:33 PM
To: openvas-devel@wald.intevation.org
Subject: Re: [Openvas-devel] KB name conflicts & package list gathering

> Am Freitag, 12. September 2008 08:36:47 schrieb Chandrashekhar B:
>> For RHEL, if we can add \n at the end in this query, it works,
>> rpm -qa --qf '%{NAME}~%{VERSION}~%{RELEASE}~%{SIGGPG:pgpsig}\n'

> Sure, no problem on my side. I will fix the parser for the OVAL plugins 
> accordingly.

>> The regular expression is failing because of large string and it doesn't
>> seem to grep appropriately.
>>
>> I think, we should all move to gather-package-list.nasl, move everything
>> into this. I just glanced through, nothing seems to break by adding '\n'
>>at
>> the end of rpm -qa queries. So, we'll add \n to gather-package-list.nasl
>> and move all our scripts to point to this.

> While we are at it, would it make sense to leave the parsing as well to 
> gather-package-list.nasl?

> That way, we wouldn't end up with a huge string in the KB that could be in
> any 
> of the different formats (depending on the distribution) but with 
> structured information about the packages in the KB. This would enable us
> to check for package versions etc. using the functions already available 
> for the KB instead of writing dozens of new functions in NASL.

By adding \n, it would look nice in the KB item :) If we need additional
parsing, we should add respective .inc files where specific parsing is done.
Am not sure if I understood this correctly. 

> I'm not sure how much work it would take, but IMHO it would be well worth
> the effort and make writing LSCs both easier and more efficient.


Chandra.

_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-devel

Reply via email to