Advertisement
Guest User

oval-rpminfo_test

a guest
Mar 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.58 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>                                          
  2. <oval_definitions xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:linux="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  3.   <generator>                                                                  
  4.     <oval:product_name>vim, emacs</oval:product_name>                          
  5.     <oval:schema_version>5.10</oval:schema_version>                            
  6.     <oval:timestamp>2010-08-30T12:00:00-04:00</oval:timestamp>                  
  7.   </generator>                                                                  
  8.   <definitions>                                                                
  9.     <definition class="inventory" id="oval:ssg-installed_OS_is_centos7:def:1" version="2">
  10.       <metadata>                                                                
  11.         <title>CentOS 7</title>                                                
  12.         <affected family="unix">                                                
  13.     </affected>                                                                
  14.         <reference ref_id="cpe:/o:centos:centos:7" source="CPE" />              
  15.         <description>The operating system installed on the system is            
  16.   CentOS 7</description>                                                        
  17.         <reference ref_id="installed_OS_is_centos7" source="ssg" />            
  18.       </metadata>                                                              
  19.       <criteria>                                                                
  20.         <criterion comment="CentOS7 is installed" test_ref="oval:ssg-test_centos7:tst:1" />
  21.       </criteria>                                                              
  22.     </definition>                                                              
  23.   </definitions>                                                                
  24.   <tests>                                                                      
  25.     <linux:rpminfo_test check="all" check_existence="at_least_one_exists" comment="centos-release is version 7" id="oval:ssg-test_centos7:tst:1" version="1">
  26.       <linux:object object_ref="oval:ssg-obj_centos7:obj:1" />                  
  27.       <linux:state state_ref="oval:ssg-state_centos7:ste:1" />                  
  28.     </linux:rpminfo_test>                                                      
  29.   </tests>                                                                      
  30.   <objects>                                                                    
  31.     <linux:rpminfo_object id="oval:ssg-obj_centos7:obj:1" version="1">          
  32.       <linux:name>centos-release</linux:name>                                  
  33.     </linux:rpminfo_object>                                                    
  34.   </objects>                                                                    
  35.   <states>                                                                      
  36.     <linux:rpminfo_state id="oval:ssg-state_centos7:ste:1" version="1">        
  37.       <linux:version operation="pattern match">^7.*$</linux:version>            
  38.     </linux:rpminfo_state>                                                      
  39.   </states>                                                                    
  40. </oval_definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement