[Oval-devel] TextFileContentProbe status

Javier Fernández-Sanguino Peña jfs at computer.org
Wed Jul 25 08:19:57 UTC 2007


Sorry, I was away this weekend on vacation and did not catch up with mail
until now.

On Fri, Jul 20, 2007 at 12:52:22AM +0500, Pavel Vinogradov wrote:
>  Last three days i work on implementation of TextFileContentProbe
> class. This class in required for testing contents of
> /etc/debian_version.

One thing I don't understand is that I can see a TextFileContentProbe
implementation in the OVAL interpreter:

./src/probes/independent/TextFileContentProbe.cpp

Why doesnt it work for you?

>  This changes tested on Debian Etch and in correctly generate
> system-characteristics.xml, but states analizations currently don't
> work.

Could you please tell me how do you test this?

>  I attach updated Debian release definitions file.

Ok.

>       <criteria comment='Release section' operator='AND'>
>         <criterion comment='Debian 4.0 is installed' test_ref='oval:org.debian.oval:tst:1'/>
>         <criterion comment='Debian 3.1 is installed' test_ref='oval:org.debian.oval:tst:2'/>
>       </criteria>

This definition does not make sense, how cant both Debian 4.0 and Debian 3.1
be installed?


>   <states>
>      <textfilecontent_state version='1' id='oval:org.debian.oval:ste:1' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#independent'>
> 	     <line operation="equals">sid</line>
>     </textfilecontent_state>

This is not correct, the line for non-stable releases does not equal 'sid' it
*contains* sid.


Regards

Javier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/oval-devel/attachments/20070725/49905205/attachment.pgp 


More information about the Oval-devel mailing list