17b66cf61Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
27b66cf61Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co.|Ltd.
37b66cf61Sopenharmony_ci     Licensed under the Apache License|Version 2.0 (the "License");
47b66cf61Sopenharmony_ci     you may not use this file except in compliance with the License.
57b66cf61Sopenharmony_ci     You may obtain a copy of the License at
67b66cf61Sopenharmony_ci
77b66cf61Sopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
87b66cf61Sopenharmony_ci
97b66cf61Sopenharmony_ci     Unless required by applicable law or agreed to in writing|software
107b66cf61Sopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
117b66cf61Sopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND|either express or implied.
127b66cf61Sopenharmony_ci     See the License for the specific language governing permissions and
137b66cf61Sopenharmony_ci     limitations under the License.
147b66cf61Sopenharmony_ci
157b66cf61Sopenharmony_ci	 Notes:
167b66cf61Sopenharmony_ci	 This is project config file for OpenHarmony OSS Audit Tool|if you have any questions or concerns|please email chenyaxun.
177b66cf61Sopenharmony_ci-->
187b66cf61Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide:
197b66cf61Sopenharmony_cibasedir: Root dir|the basedir + project path is the real source file location.
207b66cf61Sopenharmony_cilicensefile:
217b66cf61Sopenharmony_ci1.If the project don't have "LICENSE" in root dir|please define all the license files in this project in |OAT will check license files according to this rule.
227b66cf61Sopenharmony_ci
237b66cf61Sopenharmony_citasklist(only for batch mode):
247b66cf61Sopenharmony_ci1. task: Define oat check thread|each task will start a new thread.
257b66cf61Sopenharmony_ci2. task name: Only an name|no practical effect.
267b66cf61Sopenharmony_ci3. task policy: Default policy for projects under this task|this field is required and the specified policy must defined in policylist.
277b66cf61Sopenharmony_ci4. task filter: Default filefilter for projects under this task|this field is required and the specified filefilter must defined in filefilterlist.
287b66cf61Sopenharmony_ci5. task project: Projects to be checked|the path field define the source root dir of the project.
297b66cf61Sopenharmony_ci
307b66cf61Sopenharmony_ci
317b66cf61Sopenharmony_cipolicyList:
327b66cf61Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process.
337b66cf61Sopenharmony_ci2. policyitem: The fields type|name|path|desc is required|and the fields rule|group|filefilter is optional,the default value is:
347b66cf61Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
357b66cf61Sopenharmony_ci3. policyitem type:
367b66cf61Sopenharmony_ci    "compatibility" is used to check license compatibility in the specified path;
377b66cf61Sopenharmony_ci    "license" is used to check source license header in the specified path;
387b66cf61Sopenharmony_ci    "copyright" is used to check source copyright header in the specified path;
397b66cf61Sopenharmony_ci    "import" is used to check source dependency in the specified path|such as import ... ,include ...
407b66cf61Sopenharmony_ci    "filetype" is used to check file type in the specified path|supported file types: archive|binary
417b66cf61Sopenharmony_ci    "filename" is used to check whether the specified file exists in the specified path(support projectroot in default OAT.xml)|supported file names: LICENSE|README|README.OpenSource
427b66cf61Sopenharmony_ci
437b66cf61Sopenharmony_ci4. policyitem name: This field is used for define the license|copyright|"*" means match all|the "!" prefix means could not match this value. For example|"!GPL" means can not use GPL license.
447b66cf61Sopenharmony_ci5. policyitem path: This field is used for define the source file scope to apply this policyitem|the "!" prefix means exclude the files. For example|"!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
457b66cf61Sopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed|the result will be passed.
467b66cf61Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules.
477b66cf61Sopenharmony_ci8. filefilter: Filter rules|the type filename is used to filter file name|the type filepath is used to filter file path.
487b66cf61Sopenharmony_ci
497b66cf61Sopenharmony_ciNote:If the text contains special characters|please escape them according to the following rules:
507b66cf61Sopenharmony_ci" == &gt;
517b66cf61Sopenharmony_ci& == &gt;
527b66cf61Sopenharmony_ci' == &gt;
537b66cf61Sopenharmony_ci< == &gt;
547b66cf61Sopenharmony_ci> == &gt;
557b66cf61Sopenharmony_ci-->
567b66cf61Sopenharmony_ci<configuration>
577b66cf61Sopenharmony_ci    <oatconfig>
587b66cf61Sopenharmony_ci        <licensefile>COPYING</licensefile>
597b66cf61Sopenharmony_ci        <policylist>
607b66cf61Sopenharmony_ci            <policy name="projectPolicy" desc="">
617b66cf61Sopenharmony_ci				<policyitem type="compatibility" name="GPL-2.0" path="filter/.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="imagetoraster独立进程使用,依赖的cups和cupsfilters动态链接库"/>
627b66cf61Sopenharmony_ci				<policyitem type="compatibility" name="GPL-2.0" path="cupsfilters/.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="cupsfilters动态链接库, imagetoraster独立进程使用"/>
637b66cf61Sopenharmony_ci				<policyitem type="compatibility" name="GPL-2.0+" path="mime/cupsfilters.types" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="配置文件, 被cups服务读取"/>
647b66cf61Sopenharmony_ci				<policyitem type="compatibility" name="LGPLStyleLicense" path="cupsfilters/ipp.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="cupsfilters动态链接库, imagetoraster独立进程使用"/>
657b66cf61Sopenharmony_ci				<policyitem type="compatibility" name="LGPLStyleLicense" path="cupsfilters/ipp.c" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="cupsfilters动态链接库, imagetoraster独立进程使用"/>
667b66cf61Sopenharmony_ci			</policy>
677b66cf61Sopenharmony_ci        </policylist>
687b66cf61Sopenharmony_ci		<licensematcherlist>
697b66cf61Sopenharmony_ci			<licensematcher name="GPL-2.0" desc="" >
707b66cf61Sopenharmony_ci				<licensetext name="
717b66cf61Sopenharmony_ci				*   These coded instructions, statements, and computer programs are the
727b66cf61Sopenharmony_ci				*   property of Apple Inc. and are protected by Federal copyright
737b66cf61Sopenharmony_ci				*   law.  Distribution and use rights are outlined in the file &quot;COPYING&quot;
747b66cf61Sopenharmony_ci				*   which should have been included with this file.
757b66cf61Sopenharmony_ci				" desc=""/>
767b66cf61Sopenharmony_ci				<licensetext name="
777b66cf61Sopenharmony_ci				PDF file output routines.
787b66cf61Sopenharmony_ci				" desc=""/>
797b66cf61Sopenharmony_ci				<licensetext name="
807b66cf61Sopenharmony_ci				# License: GPL-2.0
817b66cf61Sopenharmony_ci				" desc=""/>
827b66cf61Sopenharmony_ci			</licensematcher>
837b66cf61Sopenharmony_ci			<licensematcher name="LGPL-2.1+" desc="" >
847b66cf61Sopenharmony_ci				<licensetext name="
857b66cf61Sopenharmony_ci				under the terms of the GNU Lesser General Public License as
867b66cf61Sopenharmony_ci				" desc=""/>
877b66cf61Sopenharmony_ci			</licensematcher>
887b66cf61Sopenharmony_ci			<licensematcher name="MIT License" desc="" >
897b66cf61Sopenharmony_ci				<licensetext name="
907b66cf61Sopenharmony_ci				// MIT Licensed.
917b66cf61Sopenharmony_ci				" desc=""/>
927b66cf61Sopenharmony_ci			</licensematcher>
937b66cf61Sopenharmony_ci		</licensematcherlist>
947b66cf61Sopenharmony_ci        <filefilterlist>
957b66cf61Sopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
967b66cf61Sopenharmony_ci				<filteritem type="filename" name="ChangeLog" desc="修改日志信息"/>
977b66cf61Sopenharmony_ci				<filteritem type="filename" name="COPYING" desc="COPYING信息"/>
987b66cf61Sopenharmony_ci				<filteritem type="filename" name="AUTHORS" desc="作者信息"/>
997b66cf61Sopenharmony_ci				<filteritem type="filename" name="INSTALL" desc="安装指导信息"/>
1007b66cf61Sopenharmony_ci				<filteritem type="filename" name="install-sh" desc="安装脚本信息"/>
1017b66cf61Sopenharmony_ci				<filteritem type="filename" name="Makefile.am" desc="编译脚本信息"/>
1027b66cf61Sopenharmony_ci            </filefilter>
1037b66cf61Sopenharmony_ci            <filefilter name="copyrightPolicyFilter" desc="Files not to check">
1047b66cf61Sopenharmony_ci				<filteritem type="filepath" name="cupsfilters/.*" desc="动态链接方式使用"/>
1057b66cf61Sopenharmony_ci				<filteritem type="filepath" name="filter/.*" desc="动态链接方式使用"/>
1067b66cf61Sopenharmony_ci				<filteritem type="filepath" name="backend/.*" desc="动态链接方式使用"/>
1077b66cf61Sopenharmony_ci				<filteritem type="filepath" name="mime/.*" desc="驱动配置文件,只读,没有修改"/>
1087b66cf61Sopenharmony_ci				<filteritem type="filepath" name="drv/.*" desc="没有使用"/>
1097b66cf61Sopenharmony_ci				<filteritem type="filepath" name="banners/.*" desc="没有使用"/>
1107b66cf61Sopenharmony_ci				<filteritem type="filepath" name="utils/.*" desc="没有使用"/>
1117b66cf61Sopenharmony_ci				<filteritem type="filepath" name="fontembed/.*" desc="没有使用"/>
1127b66cf61Sopenharmony_ci				<filteritem type="filepath" name="ppd/.*" desc="没有使用"/>
1137b66cf61Sopenharmony_ci				<filteritem type="filepath" name="m4/.*" desc="没有使用"/>
1147b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/.*" desc="没有使用"/>
1157b66cf61Sopenharmony_ci				<filteritem type="filepath" name="scripting/.*" desc="没有使用"/>
1167b66cf61Sopenharmony_ci				<filteritem type="filepath" name="charset/.*" desc="没有使用"/>
1177b66cf61Sopenharmony_ci				<filteritem type="filepath" name="autogen.sh" desc="没有使用"/>
1187b66cf61Sopenharmony_ci				<filteritem type="filepath" name="configure.ac" desc="没有使用"/>
1197b66cf61Sopenharmony_ci				<filteritem type="filepath" name="ln-srf" desc="没有使用"/>
1207b66cf61Sopenharmony_ci            </filefilter>
1217b66cf61Sopenharmony_ci			<filefilter name="defaultPolicyFilter" desc="Files not to check">
1227b66cf61Sopenharmony_ci				<filteritem type="filepath" name="cupsfilters/.*" desc="除了单列,其它动态链接方式使用"/>
1237b66cf61Sopenharmony_ci				<filteritem type="filepath" name="fontembed/.*" desc="没有使用"/>
1247b66cf61Sopenharmony_ci				<filteritem type="filepath" name="banners/.*" desc="没有使用"/>
1257b66cf61Sopenharmony_ci				<filteritem type="filepath" name="drv/.*" desc="没有使用"/>
1267b66cf61Sopenharmony_ci				<filteritem type="filepath" name="mime/.*" desc="除了单列,其它驱动配置文件只读,没有修改"/>
1277b66cf61Sopenharmony_ci				<filteritem type="filepath" name="charset/.*" desc="没有使用"/>
1287b66cf61Sopenharmony_ci				<filteritem type="filepath" name="autogen.sh" desc="没有使用"/>
1297b66cf61Sopenharmony_ci				<filteritem type="filepath" name="configure.ac" desc="没有使用"/>
1307b66cf61Sopenharmony_ci				<filteritem type="filepath" name="ln-srf" desc="没有使用"/>
1317b66cf61Sopenharmony_ci				<filteritem type="filepath" name="filter/.*" desc="除了单列,其它都没有参与编译使用"/>
1327b66cf61Sopenharmony_ci				<filteritem type="filepath" name="filter/common.c" desc="动态链接方式使用"/>
1337b66cf61Sopenharmony_ci				<filteritem type="filepath" name="filter/common.h" desc="动态链接方式使用"/>
1347b66cf61Sopenharmony_ci				<filteritem type="filepath" name="filter/imagetoraster.c" desc="动态链接方式使用"/>
1357b66cf61Sopenharmony_ci				<filteritem type="filepath" name="cupsfilters/testdriver.c" desc="代码没有参与编译"/>
1367b66cf61Sopenharmony_ci				<filteritem type="filepath" name="cupsfilters/testimage.c" desc="代码没有参与编译"/>
1377b66cf61Sopenharmony_ci				<filteritem type="filepath" name="pcl-common.h" desc="代码没有参与编译"/>
1387b66cf61Sopenharmony_ci				<filteritem type="filepath" name="mime/cupsfilters-ghostscript.convs" desc="代码没有参与编译"/>
1397b66cf61Sopenharmony_ci				<filteritem type="filepath" name="cupsfilters/testrgb.c" desc="代码没有参与编译"/>
1407b66cf61Sopenharmony_ci				<filteritem type="filepath" name="cupsfilters/testdither.c" desc="代码没有参与编译"/>
1417b66cf61Sopenharmony_ci				<filteritem type="filepath" name="cupsfilters/testcmyk.c" desc="代码没有参与编译"/>
1427b66cf61Sopenharmony_ci				<filteritem type="filepath" name="mime/cupsfilters-mupdf.convs" desc="代码没有参与编译"/>
1437b66cf61Sopenharmony_ci				<filteritem type="filepath" name="mime/cupsfilters-poppler.convs" desc="代码没有参与编译"/>
1447b66cf61Sopenharmony_ci				<filteritem type="filepath" name="implicitclass.c" desc="代码没有参与编译"/>
1457b66cf61Sopenharmony_ci				<filteritem type="filepath" name="scripting/.*" desc="代码没有参与编译"/>
1467b66cf61Sopenharmony_ci				<filteritem type="filepath" name="backend/.*" desc="代码没有参与编译"/>
1477b66cf61Sopenharmony_ci				<filteritem type="filepath" name="ppd/.*" desc="代码没有参与编译"/>
1487b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/.*" desc="代码没有参与编译"/>
1497b66cf61Sopenharmony_ci				<filteritem type="filepath" name="utils/.*" desc="代码没有参与编译"/>
1507b66cf61Sopenharmony_ci				<filteritem type="filepath" name="m4/.*" desc="代码没有参与编译"/>
1517b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/unclassified.ps" desc="PostScript文件, 没有参与编译"/>
1527b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/confidential.ps" desc="PostScript文件, 没有参与编译"/>
1537b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/topsecret.ps" desc="PostScript文件, 没有参与编译"/>
1547b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/classified.ps" desc="PostScript文件, 没有参与编译"/>
1557b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/standard.ps" desc="PostScript文件, 没有参与编译"/>
1567b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/secret.ps" desc="PostScript文件, 没有参与编译"/>
1577b66cf61Sopenharmony_ci			</filefilter>
1587b66cf61Sopenharmony_ci            <filefilter name="binaryFileTypePolicyFilter" desc="二进制文件校验策略的过滤条件" >
1597b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/confidential.pdf" desc="pdf文件"/>
1607b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/unclassified.pdf" desc="pdf文件"/>
1617b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/default-testpage.pdf" desc="pdf文件"/>
1627b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/default.pdf" desc="pdf文件"/>
1637b66cf61Sopenharmony_ci				<filteritem type="filepath" name="drv/cupsfilters.drv" desc="drv驱动示例文件"/>
1647b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/form_english.pdf" desc="pdf文件"/>
1657b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/form_english_in.odt" desc="odt文档文件"/>
1667b66cf61Sopenharmony_ci				<filteritem type="filepath" name="drv/generic-brf.drv" desc="drv驱动示例文件"/>
1677b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/form_russian.pdf" desc="pdf文件"/>
1687b66cf61Sopenharmony_ci				<filteritem type="filepath" name="drv/generic-ubrl.drv" desc="drv驱动示例文件"/>
1697b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/form_russian_in.odt" desc="odt文档文件"/>
1707b66cf61Sopenharmony_ci				<filteritem type="filepath" name="drv/indexv3.drv" desc="drv驱动示例文件"/>
1717b66cf61Sopenharmony_ci				<filteritem type="filepath" name="drv/indexv4.drv" desc="drv驱动示例文件"/>
1727b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/secret.pdf" desc="pdf文件"/>
1737b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/standard.pdf" desc="pdf文件"/>
1747b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/classified.pdf" desc="pdf文件"/>
1757b66cf61Sopenharmony_ci				<filteritem type="filepath" name="data/topsecret.pdf" desc="pdf文件"/>
1767b66cf61Sopenharmony_ci			</filefilter>
1777b66cf61Sopenharmony_ci        </filefilterlist>
1787b66cf61Sopenharmony_ci    </oatconfig>
1797b66cf61Sopenharmony_ci</configuration>