[Open-scap] recurse="symlinks" and "symlinks and directories" mismatch

Maria Kedovskaya kmn at altx-soft.ru
Wed Jan 29 08:57:34 UTC 2014


Hello, 
I have a question about the parameter behavior in textfilecontent54_object . 
There are two objects: 


first: 

<textfilecontent54_object id="oval:ru.altx-soft.nix:obj:2118511" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> 
<behaviors recurse_direction="down" recurse="symlinks"/> 
<path>/usr/tmp</path> 
<filename operation="pattern match">.*file.*</filename> 
<pattern operation="pattern match">.*</pattern> 
<instance datatype="int">1</instance> 
</textfilecontent54_object> 

second: 

<textfilecontent54_object id="oval:ru.altx-soft.nix:obj:211851" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> 
<behaviors recurse_direction="down" recurse="symlinks and directories"/> 
<path>/usr/tmp</path> 
<filename operation="pattern match">.*file.*</filename> 
<pattern operation="pattern match">.*</pattern> 
<instance datatype="int">1</instance> 
</textfilecontent54_object> 
The directory /usr/tmp/ which is checked contains next files: 


[root at Centosc64bitdesktop tmp]# ls -al 
total 12 
drwxrwxrwt. 3 root root 4096 Jan 29 10:24 . 
drwxr-xr-x. 18 root root 4096 Jan 13 16:16 .. 
lrwxrwxrwx. 1 root root 5 Jan 29 10:18 dir -> /root 
drwxr-xr-x. 2 root root 4096 Jan 29 10:18 dir2 
-rw-r--r--. 1 root root 0 Jan 29 10:17 file 
lrwxrwxrwx. 1 root root 9 Jan 29 10:24 filelink -> /32/hosts 


[root at Centosc64bitdesktop tmp]# ls /usr/tmp/file -al 
-rw-r--r--. 1 root root 0 Jan 29 10:17 /usr/tmp/file 

[root at Centosc64bitdesktop tmp]# ls /root/file -al 
-rw-r--r--. 1 root root 0 Jan 29 10:18 /root/file 
When I choose recurse="symlinks and directories" it follow dir directory but when I use recurse="symlinks" it does not. 
This item does not exist in first object: 


<ind-sys:textfilecontent_item id="1342992" status="exists"> 
<ind-sys:filepath>/usr/tmp/file</ind-sys:filepath> 
<ind-sys:path>/usr/tmp</ind-sys:path> 
<ind-sys:filename>file</ind-sys:filename> 
<ind-sys:pattern>.*</ind-sys:pattern> 
<ind-sys:instance datatype="int">1</ind-sys:instance> 
<ind-sys:line>.*</ind-sys:line> 
<ind-sys:text></ind-sys:text> 
</ind-sys:textfilecontent_item> 
Tell me why. 

With Best Regards, 
Maria Mikhno (Kedovskaya) 
Altex-Soft 
kmn at altx-soft.ru | altx-soft.ru | altex-soft.com 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20140129/af022a43/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: altx_logo_en.png
Type: image/png
Size: 3946 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20140129/af022a43/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: res.xml
Type: application/xml
Size: 8433 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20140129/af022a43/attachment.wsdl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: res1.xml
Type: application/xml
Size: 13504 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20140129/af022a43/attachment-0001.wsdl>


More information about the Open-scap-list mailing list