Comparing EVRs for the RPM test.

2 Messages Forum Options Options
Embed this topic
Permalink
Vladimir Giszpenc
Comparing EVRs for the RPM test.
Reply Threaded MoreMore options
Print post
Permalink
OVAL list members,

Given the following expected state:

<rpminfo_state id="oval:org.mitre.oval:ste:1024" version="1"
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
 <evr datatype="evr_string" operation="less than">0:6.2.5-6.el4.2</evr>
</rpminfo_state>

Should an actual state (that does not contain the architecture) of 0:6.2.5-6
be less than the expected state?  Or should 6.el4.2 be truncated to the
revision of 6?

The reference implementation truncates the revision.  Is this right?  

This seems to lead to ambiguous content.  It seems to require an
architecture component but in fact it is ignored.  

If the way things work is the way it should be, perhaps a little more in the
docs will help the next guy.

Thanks,

Vladimir Giszpenc
DSCI Contractor Supporting
US Army CERDEC S&TCD IAD Tactical Network Protection Branch
(732) 532-8959

To unsubscribe, send an email message to LISTSERV@... with
SIGNOFF OVAL-DEVELOPER-LIST
in the BODY of the message.  If you have difficulties, write to OVAL-DEVELOPER-LIST-request@....


smime.p7s (4K) Download Attachment
Vladimir Giszpenc
Re: Comparing EVRs for the RPM test.
Reply Threaded MoreMore options
Print post
Permalink
Nevermind.  

No one is truncating anything except my eyes maybe.

My apologies.

Vladimir Giszpenc
DSCI Contractor Supporting
US Army CERDEC S&TCD IAD Tactical Network Protection Branch
(732) 532-8959

> -----Original Message-----
> OVAL list members,
>
> Given the following expected state:
>
> <rpminfo_state id="oval:org.mitre.oval:ste:1024" version="1"
> xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
>  <evr datatype="evr_string" operation="less
than">0:6.2.5-6.el4.2</evr>
> </rpminfo_state>
>
> Should an actual state (that does not contain the architecture) of
> 0:6.2.5-6
> be less than the expected state?  Or should 6.el4.2 be truncated to
the
> revision of 6?
>
> The reference implementation truncates the revision.  Is this right?
>
> This seems to lead to ambiguous content.  It seems to require an
> architecture component but in fact it is ignored.
>
> If the way things work is the way it should be, perhaps a little more
in

> the
> docs will help the next guy.
>
> Thanks,
>
> Vladimir Giszpenc
> DSCI Contractor Supporting
> US Army CERDEC S&TCD IAD Tactical Network Protection Branch
> (732) 532-8959
>
> To unsubscribe, send an email message to LISTSERV@... with
> SIGNOFF OVAL-DEVELOPER-LIST
> in the BODY of the message.  If you have difficulties, write to OVAL-
> DEVELOPER-LIST-request@....

To unsubscribe, send an email message to LISTSERV@... with
SIGNOFF OVAL-DEVELOPER-LIST
in the BODY of the message.  If you have difficulties, write to OVAL-DEVELOPER-LIST-request@....