[Open-scap] OVAL help

Baker, Jon bakerj at mitre.org
Mon Jun 15 15:28:11 UTC 2009


Peter,

Your link is pointing to the correct location in the schema documentation. However, in this case you should look to the actual schema itself. You will find more documentation there. The element dictionaries don't contain all the documentation for the schema. 

I pulled this text from the schema documentation:

"The recurse attribute defines how to recurse into the PATH entity, in other words what to follow during recursion. Options includ symlinks, directories, or both. Note that a max-depth has be specified for recursion to take place and for this attribute to mean anything."

Here is the documentation for the 'max_depth' behavior:

"'max_depth' defines how many directories to recurse when a recurse direction is specified. The default value is '-1' meaning no limitation. A value of '0' is equivalent to no recursion, '1' means to step only one directory level up/down, and so on."

I hope that helps.

Regards,

Jon 

============================================
Jonathan O. Baker
G022 - IA Industry Collaboration
The MITRE Corporation
Email: bakerj at mitre.org


>-----Original Message-----
>From: Peter Vrabec [mailto:pvrabec at redhat.com]
>Sent: Friday, June 05, 2009 9:18 AM
>To: open-scap-list at redhat.com
>Cc: Baker, Jon; OVAL
>Subject: Re: [Open-scap] OVAL help
>
>Hi Jon,
>
>thnx. for your explanation. I promis I'll send email to oval-developer-
>list
>next time. :)
>
>> >3.
>> >And finally the last Q. :)
>> ><path operation="pattern match">/lib/modules/.*/some_symlink</path>
>> >
>> >Should we follow symlinks, when we evaluate path element? Should we
>take
>> >element "behavior" in consideration?
>>
>> On the unix-def:file_object there is a <behaviors/> element that
>defines
>> this behavior. I recommend looking at the documentation for version
>5.6
>> draft 1. In this first draft we added more documentation to the unix
>> FileBehaviorsType.
>
>Hmm, I had an impression that <behaviors/> is related more to <filename>
>element.
>
><behaviors/> defines recursion setting, but there is no recursion done
>for
><path> is it?  Paths are the starting points for recursion.
>I thought  that algorithm is something like:
>1. find all path(s) (in case of pattern match)
>2. find filename(s) in paths
>
>Probably I miss something :)
>
>Can you send me links to documentation, please. I'm using
>
>http://oval.mitre.org/language/download/schema/version5.6/ovaldefinition
>/documentation/unix-definitions-schema.html#FileBehaviors
>But there isn't much about FileBehaviors.
>and
>http://schemas.liquid-technologies.com/OASIS/Oval/5.4/
>
>thnx. again,
>Peter.




More information about the Open-scap-list mailing list