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>pcre2/LICENCE</licensefile> 23 <policylist> 24 <policy name="projectPolicy" desc=""> 25 <policyitem type="copyright" name="University of Cambridge" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 26 <policyitem type="copyright" name="北京万里红科技有限公司" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 27 <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 28 <policyitem type="copyright" name="Steven G. Johnson <stevenj@alum.mit.edu>" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 29 <policyitem type="copyright" name="Daniel Richard G. <skunk@iSKUNK.ORG>" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 30 <policyitem type="copyright" name="X Consortium" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 31 <policyitem type="copyright" name="Free Software Foundation, Inc" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 32 <policyitem type="copyright" name=" Free Software" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 33 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/missing" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 34 <policyitem type="license" name="GPLStyleLicense" path="pcre2/missing" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 35 <policyitem type="license" name="GPLStyleLicense" path="pcre2/test-driver" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 36 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/test-driver" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 37 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/ar-lib" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 38 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/compile" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 39 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/config.guess" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 40 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/config.sub" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 41 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/depcomp" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 42 <policyitem type="compatibility" name="GPL-3.0+" path="pcre2/m4/ax_pthread.m4" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 43 <policyitem type="compatibility" name="GPLStyleLicense-with-Libtool-exception" path="pcre2/m4/libtool.m4" desc="Not used in ohos."/> 44 <policyitem type="compatibility" name="FSFULLR" path="pcre2/m4/.*.m4" desc="Not used in ohos."/> 45 <policyitem type="compatibility" name="FSFUL" path="pcre2/configure" desc="Not used in ohos."/> 46 <policyitem type="compatibility" name="PCRE2 LICENCE" path="pcre2/cmake/COPYING-CMAKE-SCRIPTS" desc="Not used in ohos."/> 47 <policyitem type="license" name="FSFUL" path="pcre2/configure" desc="Not used in ohos."/> 48 <policyitem type="compatibility" name="BSD-3-Clause" path="pcre2/src/.*" desc="兼容license"/> 49 <policyitem type="compatibility" name="BSD-2-Clause" path="pcre2/src/sljit/.*" desc="兼容license"/> 50 <policyitem type="license" name="BSD-2-Clause" path="pcre2/src/sljit/sljitLir.h" desc="兼容license"/> 51 <policyitem type="license" name="BSD-3-Clause" path="pcre2/src/.*.h" desc="兼容license"/> 52 <policyitem type="license" name="GPL-3.0+" path="pcre2/m4/ax_pthread.m4" desc="兼容license"/> 53 <policyitem type="license" name="GPLStyleLicense" path="pcre2/ar-lib" desc="兼容license"/> 54 <policyitem type="license" name="GPLStyleLicense-with-Libtool-exception" path="pcre2/m4/libtool.m4" desc="兼容license"/> 55 <policyitem type="license" name="GPLStyleLicense" path="pcre2/depcomp" desc="兼容license"/> 56 <policyitem type="license" name="GPLStyleLicense" path="pcre2/compile" desc="兼容license"/> 57 <policyitem type="license" name="FSFULLR" path="pcre2/m4/.*.m4" desc="兼容license"/> 58 <policyitem type="license" name="GPLStyleLicense" path="pcre2/config.guess" desc="兼容license"/> 59 <policyitem type="license" name="MIT" path="pcre2/install-sh" desc="兼容license"/> 60 <policyitem type="license" name="GPLStyleLicense" path="pcre2/config.sub" desc="兼容license"/> 61 <policyitem type="compatibility" name="BSD-2-Clause" path="pcre2/mp4/.*" desc="兼容license"/> 62 <policyitem type="compatibility" name="MIT" path="pcre2/install-sh" desc="兼容license"/> 63 <policyitem type="license" name="BSD-2-Clause" path="pcre2/src/sljit/sljitConfig.h" desc="兼容license"/> 64 <policyitem type="license" name="BSD-2-Clause" path="pcre2/src/sljit/sljitConfigInternal.h" desc="兼容license"/> 65 <policyitem type="compatibility" name="FSF Unlimited License" path="pcre2/m4/pcre2_visibility.m4" desc="兼容license"/> 66 <policyitem type="license" name="FSF Unlimited License" path="pcre2/m4/pcre2_visibility.m4" desc="兼容license"/> 67 <policyitem type="compatibility" name="FSF Unlimited License" path="pcre2/INSTALL" desc="兼容license"/> 68 <policyitem type="compatibility" name="GNU GPL" path="pcre2/Makefile.am" desc="兼容license"/> 69 <policyitem type="compatibility" name="Cygwin licence" path="pcre2/NON-AUTOTOOLS-BUILD" desc="兼容license"/> 70 <policyitem type="license" name="Cygwin licence" path="pcre2/NON-AUTOTOOLS-BUILD" desc="兼容license"/> 71 <policyitem type="license" name="BSD LICENCE" path="pcre2/doc/pcre2test.1" desc="兼容license"/> 72 <policyitem type="license" name="BSD LICENCE" path="pcre2/src/pcre2_chartables.c.dist" desc="兼容license"/> 73 <policyitem type="compatibility" name="BSD LICENCE" path="pcre2/src/pcre2_chartables.c.dist" desc="兼容license"/> 74 <policyitem type="license" name="BSD-3-Clause" path="pcre2/cmake/COPYING-CMAKE-SCRIPTS" desc="兼容license"/> 75 <policyitem type="compatibility" name="BSD-3-Clause" path="pcre2/cmake/COPYING-CMAKE-SCRIPTS" desc="兼容license"/> 76 <policyitem type="license" name="BSD LICENCE" path="pcre2/RunTest.bat" desc="兼容license"/> 77 <policyitem type="license" name="BSD LICENCE" path="pcre2/COPYING" desc="兼容license"/> 78 <policyitem type="license" name="FSF Unlimited License" path="pcre2/INSTALL" desc="兼容license"/> 79 <policyitem type="license" name="BSD-2-clause" path="pcre2/LICENCE" desc="兼容license"/> 80 <policyitem type="license" name="GNU GPL" path="pcre2/Makefile.am" desc="兼容license"/> 81 </policy> 82 </policylist> 83 <filefilterlist> 84 <filefilter name="defaultFilter" desc="Files not to check"> 85 </filefilter> 86 <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 87 <filteritem type="filepath" name="pcre2/doc/.*.3" desc="no license header"/> 88 <filteritem type="filepath" name="pcre2/testdata/.*" desc="no license header"/> 89 <filteritem type="filepath" name="include/pcre2.h" desc="no license header"/> 90 <filteritem type="filepath" name="pcre2/PrepareRelease" desc="no license header"/> 91 <filteritem type="filepath" name="pcre2/src/.*.c" desc="no license header"/> 92 <filteritem type="filepath" name="pcre2/AUTHORS" desc="no license header"/> 93 <filteritem type="filepath" name="pcre2/ChangeLog" desc="no license header"/> 94 <filteritem type="filepath" name="pcre2/CheckMan" desc="no license header"/> 95 <filteritem type="filepath" name="pcre2/CleanTxt" desc="no license header"/> 96 <filteritem type="filepath" name="pcre2/Detrail" desc="no license header"/> 97 <filteritem type="filepath" name="pcre2/HACKING" desc="no license header"/> 98 <filteritem type="filepath" name="pcre2/configure.ac" desc="no license header"/> 99 <filteritem type="filepath" name="pcre2/perltest.sh" desc="no license header"/> 100 <filteritem type="filepath" name="pcre2/RunGrepTest" desc="no license header"/> 101 <filteritem type="filepath" name="pcre2/RunGrepTest.bat" desc="no license header"/> 102 <filteritem type="filepath" name="pcre2/132html" desc="no license header"/> 103 <filteritem type="filepath" name="pcre2/RunTest" desc="no license header"/> 104 <filteritem type="filepath" name="pcre2/doc/index.html.src" desc="no license header"/> 105 <filteritem type="filepath" name="pcre2/doc/pcre2-config.1" desc="no license header"/> 106 <filteritem type="filepath" name="pcre2/doc/pcre2grep.1" desc="no license header"/> 107 </filefilter> 108 <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 109 <filteritem type="filepath" name="pcre2/src/sljit/.*.c" desc="InvalidCopyright"/> 110 <filteritem type="filepath" name="pcre2/132html" desc="InvalidCopyright"/> 111 <filteritem type="filepath" name="pcre2/CleanTxt" desc="InvalidCopyright"/> 112 <filteritem type="filepath" name="pcre2/maint/GenerateUtt.py" desc="InvalidCopyright"/> 113 <filteritem type="filepath" name="pcre2/maint/ManyConfigTests" desc="InvalidCopyright"/> 114 <filteritem type="filepath" name="pcre2/maint/MultiStage2.py" desc="InvalidCopyright"/> 115 <filteritem type="filepath" name="pcre2/maint/pcre2_chartables.c.non-standard" desc="InvalidCopyright"/> 116 <filteritem type="filepath" name="pcre2/autogen.sh" desc="InvalidCopyright"/> 117 <filteritem type="filepath" name="pcre2/maint/utf8.c" desc="InvalidCopyright"/> 118 <filteritem type="filepath" name="pcre2/pcre2_fuzzer.dict" desc="InvalidCopyright"/> 119 <filteritem type="filepath" name="pcre2/pcre2_fuzzer.options" desc="InvalidCopyright"/> 120 <filteritem type="filepath" name="pcre2/maint/ucptestdata/testinput1" desc="InvalidCopyright"/> 121 <filteritem type="filepath" name="pcre2/maint/ucptestdata/testinput2" desc="InvalidCopyright"/> 122 <filteritem type="filepath" name="pcre2/maint/ucptestdata/testoutput1" desc="InvalidCopyright"/> 123 <filteritem type="filepath" name="pcre2/maint/ucptestdata/testoutput2" desc="InvalidCopyright"/> 124 <filteritem type="filepath" name="pcre2/testdata/.*" desc="Describe the reason for filtering scan results"/> 125 <filteritem type="filepath" name="include/pcre2.h" desc="Describe the reason for filtering scan results"/> 126 <filteritem type="filepath" name="pcre2/PrepareRelease" desc="Describe the reason for filtering scan results"/> 127 <filteritem type="filepath" name="pcre2/doc/.*.3" desc="Describe the reason for filtering scan results"/> 128 <filteritem type="filepath" name="pcre2/perltest.sh" desc="Describe the reason for filtering scan results"/> 129 <filteritem type="filepath" name="pcre2/RunGrepTest" desc="Describe the reason for filtering scan results"/> 130 <filteritem type="filepath" name="pcre2/src/pcre2_.*.c" desc="Describe the reason for filtering scan results"/> 131 <filteritem type="filepath" name="pcre2/RunGrepTest.bat" desc="Describe the reason for filtering scan results"/> 132 <filteritem type="filepath" name="pcre2/cmake/COPYING-CMAKE-SCRIPTS" desc="Describe the reason for filtering scan results"/> 133 <filteritem type="filepath" name="pcre2/RunTest" desc="Describe the reason for filtering scan results"/> 134 <filteritem type="filepath" name="pcre2/RunTest.bat" desc="Describe the reason for filtering scan results"/> 135 <filteritem type="filepath" name="pcre2/Detrail" desc="Describe the reason for filtering scan results"/> 136 <filteritem type="filepath" name="pcre2/NON-AUTOTOOLS-BUILD" desc="Describe the reason for filtering scan results"/> 137 <filteritem type="filepath" name="pcre2/HACKING" desc="Describe the reason for filtering scan results"/> 138 <filteritem type="filepath" name="pcre2/configure.ac" desc="Describe the reason for filtering scan results"/> 139 <filteritem type="filepath" name="pcre2/src/pcre2demo.c" desc="Describe the reason for filtering scan results"/> 140 <filteritem type="filepath" name="pcre2/src/sljit/.*.h" desc="InvalidCopyright"/> 141 <filteritem type="filepath" name="pcre2/doc/.*.1" desc="Describe the reason for filtering scan results"/> 142 <filteritem type="filepath" name="pcre2/src/pcre2_chartables.c.dist" desc="Describe the reason for filtering scan results"/> 143 <filteritem type="filepath" name="pcre2/CheckMan" desc="Describe the reason for filtering scan results"/> 144 <filteritem type="filepath" name="pcre2/doc/index.html.src" desc="Describe the reason for filtering scan results"/> 145 <filteritem type="filepath" name="pcre2/Makefile.am" desc="Describe the reason for filtering scan results"/> 146 </filefilter> 147 <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 148 </filefilter> 149 <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 150 </filefilter> 151 <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 152 </filefilter> 153 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 154 <filteritem type="filepath" name="pcre2/testdata/testoutput10" desc="already checked"/> 155 <filteritem type="filepath" name="pcre2/testdata/testbtables" desc="already checked"/> 156 <filteritem type="filepath" name="pcre2/testdata/testinput10" desc="already checked"/> 157 </filefilter> 158 </filefilterlist> 159 160 <licensematcherlist> 161 <licensematcher name="BSD-2-clause" 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 and use in source and binary forms, with or without 164 modification, are permitted provided that the following conditions are met: 165 * Redistributions of source code must retain the above copyright notices, 166 this list of conditions and the following disclaimer. 167 * Redistributions in binary form must reproduce the above copyright 168 notices, this list of conditions and the following disclaimer in the 169 documentation and/or other materials provided with the distribution. 170 * Neither the name of the University of Cambridge nor the names of any 171 contributors may be used to endorse or promote products derived from this 172 software without specific prior written permission. 173 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 174 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 175 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 176 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 177 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 178 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 179 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 180 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 181 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 182 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 183 POSSIBILITY OF SUCH DAMAGE. 184 " desc=""/> 185 </licensematcher> 186 <licensematcher name="BSD-3-Clause" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 187 <licensetext name=" 188 Redistribution and use in source and binary forms, with or without 189 modification, are permitted provided that the following conditions 190 are met: 191 1. Redistributions of source code must retain the copyright 192 notice, this list of conditions and the following disclaimer. 193 2. Redistributions in binary form must reproduce the copyright 194 notice, this list of conditions and the following disclaimer in the 195 documentation and/or other materials provided with the distribution. 196 3. The name of the author may not be used to endorse or promote products 197 derived from this software without specific prior written permission. 198 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 199 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 200 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 201 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 202 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 203 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 204 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 205 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 206 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 207 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 208 " desc=""/> 209 </licensematcher> 210 <licensematcher name="Cygwin licence" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 211 <licensetext name=" 212 Building PCRE2 without using autotools 213 " desc=""/> 214 </licensematcher> 215 <licensematcher name="GNU GPL" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 216 <licensetext name=" 217 ## Process this file with automake to produce Makefile.in. 218 " desc="license text in Makefile.in"/> 219 </licensematcher> 220 <licensematcher name="BSD LICENCE" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 221 <licensetext name=" 222 Perl-Compatible Regular Expressions 223 " desc=""/> 224 <licensetext name=" 225 @rem MS Windows batch file to run pcre2test on testfiles with the correct 226 @rem options. This file must use CRLF linebreaks to function properly, 227 @rem and requires both pcre2test and pcre2grep. 228 @rem 229 @rem ------------------------ HISTORY ---------------------------------- 230 @rem This file was originally contributed to PCRE1 by Ralf Junker, and touched 231 @rem up by Daniel Richard G. Tests 10-12 added by Philip H. 232 @rem Philip H also changed test 3 to use "wintest" files. 233 @rem 234 @rem Updated by Tom Fortmann to support explicit test numbers on the command 235 @rem line. Added argument validation and added error reporting. 236 @rem 237 @rem Sheri Pierce added logic to skip feature dependent tests 238 @rem tests 4 5 7 10 12 14 19 and 22 require Unicode support 239 @rem 8 requires Unicode and link size 2 240 @rem 16 requires absence of jit support 241 @rem 17 requires presence of jit support 242 @rem Sheri P also added override tests for study and jit testing 243 @rem Zoltan Herczeg added libpcre16 support 244 @rem Zoltan Herczeg added libpcre32 support 245 @rem ------------------------------------------------------------------- 246 @rem 247 @rem The file was converted for PCRE2 by PH, February 2015. 248 @rem Updated for new test 14 (moving others up a number), August 2015. 249 @rem Tidied and updated for new tests 21, 22, 23 by PH, October 2015. 250 @rem PH added missing "set type" for test 22, April 2016. 251 " desc=""/> 252 <licensetext name=" 253 Please see the file LICENCE in the PCRE2 distribution for licensing details. 254 " desc=""/> 255 </licensematcher> 256 <licensematcher name="FSF Unlimited License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 257 <licensetext name=" 258 dnl Copyright (C) 2005, 2008, 2010-2011 Free Software Foundation, Inc. 259 dnl This file is free software; the Free Software Foundation 260 dnl gives unlimited permission to copy and/or distribute it, 261 dnl with or without modifications, as long as this notice is preserved. 262 " desc=""/> 263 <licensetext name=" 264 Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software 265 Foundation, Inc. 266 Copying and distribution of this file, with or without modification, 267 are permitted in any medium without royalty provided the copyright 268 notice and this notice are preserved. This file is offered as-is, 269 without warranty of any kind. 270 " desc=""/> 271 </licensematcher> 272 </licensematcherlist> 273 </oatconfig> 274</configuration> 275