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