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 This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README. 17 18--> 19 20<configuration> 21 <oatconfig> 22 <licensefile>u-boot-2020.01/Licenses/gpl-2.0.txt</licensefile> 23 <policylist> 24 <policy name="projectPolicy" desc=""> 25 <policyitem type="compatibility" name="GPL" path=".*" desc="Process that runs independently, invoked by the X process."/> 26 <policyitem type="compatibility" name="bzip2 and libbzip2 License" path=".*" desc="Process that runs independently, invoked by the X process."/> 27 <policyitem type="compatibility" name="eCos-2.0" path=".*" desc="Process that runs independently, invoked by the X process."/> 28 <policyitem type="compatibility" name="OFL-1.1-no-RFN" path=".*" desc="Process that runs independently, invoked by the X process."/> 29 <policyitem type="compatibility" name="PublicDomainLicense" path=".*" desc="Process that runs independently, invoked by the X process."/> 30 <policyitem type="compatibility" name="Unicode-DFS-2016" path=".*" desc="Process that runs independently, invoked by the X process."/> 31 <policyitem type="compatibility" name="X11" path=".*" desc="Process that runs independently, invoked by the X process."/> 32 <policyitem type="compatibility" name="zlib-acknowledgement" path=".*" desc="Process that runs independently, invoked by the X process."/> 33 <policyitem type="compatibility" name="Intel" path=".*" desc="Process that runs independently, invoked by the X process."/> 34 <policyitem type="compatibility" name="BEER-WARE" path=".*" desc="Process that runs independently, invoked by the X process."/> 35 <policyitem type="compatibility" name="ISC" path=".*" desc="Process that runs independently, invoked by the X process."/> 36 <policyitem type="compatibility" name="SPDX License Expression" path=".*" desc="Process that runs independently, invoked by the X process."/> 37 <!--policyitem type="license" name="LGPL" path="abc/.*" desc="Dynamically linked by module X"/--> 38 <!--policyitem type="copyright" name="xxx" path="abc/.*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by X Company"/--> 39 </policy> 40 </policylist> 41 <filefilterlist> 42 <filefilter name="defaultFilter" desc="Files not to check"> 43 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 44 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 45 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 46 <filteritem type="filepath" name="u-boot-2020.01/drivers" desc="opensource files"/> 47 <filteritem type="filepath" name="u-boot-2020.01/tools" desc="opensource files"/> 48 <filteritem type="filepath" name="u-boot-2020.01/examples" desc="opensource files"/> 49 <filteritem type="filepath" name="u-boot-2020.01/scripts" desc="opensource files"/> 50 <filteritem type="filepath" name="u-boot-2020.01/doc" desc="opensource files"/> 51 </filefilter> 52 <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 53 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 54 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 55 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 56 <filteritem type="filepath" name="u-boot-2020.01/net/nfs.c" desc="Temp files"/> 57 <filteritem type="filepath" name="u-boot-2020.01/Licenses/Exceptions" desc="Temp files"/> 58 <filteritem type="filepath" name="u-boot-2020.01/test/run" desc="Temp files"/> 59 <filteritem type="filepath" name="u-boot-2020.01/arch/arm/cpu/armv8/fsl-layerscape/doc/README.soc" desc="Temp files"/> 60 <filteritem type="filename" name="*.txt" desc="Temp files"/> 61 </filefilter> 62 <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 63 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 64 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 65 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 66 </filefilter> 67 <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 68 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 69 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 70 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 71 </filefilter> 72 <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 73 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 74 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 75 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 76 </filefilter> 77 <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 78 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 79 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 80 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 81 </filefilter> 82 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 83 <filteritem type="filename" name="*.o" desc="Temp files"/> 84 <filteritem type="filename" name="gzip|*.dts|*.S" desc="opensource files"/> 85 <filteritem type="filepath" name="u-boot-2020.01/drivers" desc="opensource files"/> 86 <filteritem type="filepath" name="u-boot-2020.01/tools" desc="opensource files"/> 87 <filteritem type="filepath" name="u-boot-2020.01/examples" desc="opensource files"/> 88 <filteritem type="filepath" name="u-boot-2020.01/scripts" desc="opensource files"/> 89 <filteritem type="filepath" name="u-boot-2020.01/doc" desc="opensource files"/> 90 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 91 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 92 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 93 </filefilter> 94 95 </filefilterlist> 96 <licensematcherlist> 97 <licensematcher name="GPL-2.0+" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 98 <licensetext name=" 99 (See License) 100 " desc=""/> 101 <licensetext name=" 102 * SDPX-License-Identifier: GPL-2.0+ 103 " desc=""/> 104 105 </licensematcher> 106 <licensematcher name="X11" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 107 <licensetext name=" 108 * Permission to use, copy, modify, distribute, and sell this software and its 109 * documentation for any purpose is hereby granted without fee, provided that 110 * the above copyright notice appear in all copies and that both that copyright 111 * notice and this permission notice appear in supporting documentation, and 112 * that the name of the copyright holders not be used in advertising or 113 * publicity pertaining to distribution of the software without specific, 114 * written prior permission. The copyright holders make no representations 115 * about the suitability of this software for any purpose. 116 " desc=""/> 117 <licensetext name=" 118 * Permission to use, copy, modify, distribute, and sell this software and 119 * its documentation for any purpose is hereby granted without fee, 120 * provided that the above copyright notice appear in all copies and that 121 * both that copyright notice and this permission notice appear in 122 * supporting documentation, and that the name of the authors not be used 123 * in advertising or publicity pertaining to distribution of the software 124 * without specific, written prior permission. The authors makes no 125 * representations about the suitability of this software for any purpose. 126 " desc=""/> 127 </licensematcher> 128 129 <licensematcher name="zlib-acknowledgement" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 130 <licensetext name=" 131 For conditions of distribution and use, see copyright notice in zlib.h 132 " desc=""/> 133 134 <licensetext name=" 135 * This file is derived from various .h and .c files from the zlib-1.2.3 136 " desc=""/> 137 138 </licensematcher> 139 140 <licensematcher name="BSD Style License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 141 <licensetext name=" 142 1. Redistribution in binary form must reproduce the above copyright notice, 143 this list of conditions and the following disclaimer in the documentation 144 and/or other materials provided with the distribution. 145 2. The name of Renesas Electronics Corporation may not be used to endorse or 146 promote products derived from this software without specific prior written 147 permission. 148 3. Reverse engineering, decompilation, or disassembly of this software is 149 not permitted. 150 " desc=""/> 151 152 <licensetext name=" 153 * Redistribution and use in source and binary forms are freely 154 * permitted provided that the above copyright notice and this 155 * paragraph and the following disclaimer are duplicated in all 156 * such forms. 157 " desc=""/> 158 159 </licensematcher> 160 161 <licensematcher name="Intel" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 162 <licensetext name=" 163 * Redistribution. Redistribution and use in binary form, without modification, are 164 * permitted provided that the following conditions are met: 165 * .Redistributions must reproduce the above copyright notice and the following 166 * disclaimer in the documentation and/or other materials provided with the 167 * distribution. 168 * .Neither the name of Intel Corporation nor the names of its suppliers may be used 169 * to endorse or promote products derived from this software without specific prior 170 * written permission. 171 * .No reverse engineering, decompilation, or disassembly of this software is 172 * permitted. 173 " desc=""/> 174 </licensematcher> 175 176 <licensematcher name="BEER-WARE" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 177 <licensetext name=" 178 * THE BEER-WARE LICENSE 179 " desc=""/> 180 </licensematcher> 181 182 <licensematcher name="PublicDomainLicense" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 183 <licensetext name=" 184 * This source code is offered for use in the public domain. You may 185 * use, modify or distribute it freely. 186 187 " desc=""/> 188 </licensematcher> 189 190 </licensematcherlist> 191 </oatconfig> 192</configuration> 193