1<?xml version="1.0" encoding="UTF-8"?> 2<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 16--> 17 18<!--This is the configuration file template for OpenHarmony OSS Audit Tool, 19please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README. 20--> 21 22<configuration> 23 <oatconfig> 24 <licensefile>COPYRIGHT</licensefile> 25 <policylist> 26 <policy name="projectPolicy" desc=""> 27 <policyitem type="compatibility" name="InvalidLicense" path="sys/arm/arm/nexus.c" desc="MIT LICENSE 1998"/> 28 <policyitem type="compatibility" name="InvalidLicense" path="sys/arm/include/_bus.h" desc="BSD-2-CLAUSE LICENSE"/> 29 <policyitem type="compatibility" name="InvalidLicense" path="sys/dev/usb/serial/u3g.c" desc="ISC LICENSE"/> 30 <policyitem type="compatibility" name="InvalidLicense" path="sys/sys/mutex.h" desc="BSD-3-CLAUSE LICENSE"/> 31 <policyitem type="compatibility" name="InvalidLicense" path="sys/cam/scsi/scsi_all.h" desc="BSD-LIKE LICENSE"/> 32 <policyitem type="compatibility" name="InvalidLicense" path="sys/sys/sema.h" desc="BSD-2-CLAUSE LICENSE"/> 33 <policyitem type="compatibility" name="InvalidLicense" path="sys/net/ppp_defs.h" desc="BSD-LIKE LICENSE"/> 34 <policyitem type="compatibility" name="InvalidLicense" path="sys/sys/sx.h" desc="BSD-2-CLAUSE LICENSE"/> 35 <policyitem type="compatibility" name="InvalidLicense" path="sys/dev/usb/net/if_urndis.c" desc="ISC LICENSE"/> 36 <policyitem type="compatibility" name="InvalidLicense" path="sys/dev/usb/net/if_urndisreg.h" desc="ISC LICENSE"/> 37 </policy> 38 </policylist> 39 <filefilterlist> 40 <filefilter name="defaultFilter" desc="Files not to check"> 41 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 42 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 43 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 44 </filefilter> 45 <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 46 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 47 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 48 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 49 </filefilter> 50 <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 51 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 52 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 53 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 54 </filefilter> 55 <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 56 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 57 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 58 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 59 </filefilter> 60 <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 61 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 62 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 63 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 64 </filefilter> 65 <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 66 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 67 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 68 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 69 </filefilter> 70 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 71 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 72 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 73 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 74 </filefilter> 75 76 </filefilterlist> 77 <licensematcherlist> 78 <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 79 <licensetext name=" 80 uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 81 " desc=""/> 82 <licensetext name=" 83 uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 84 " desc=""/> 85 </licensematcher--> 86 </licensematcherlist> 87 </oatconfig> 88</configuration> 89