• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (c) 2022 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>LICENSE</licensefile>
23        <policylist>
24            <policy name="projectPolicy" desc="">
25				<policyitem type="copyright" name="Shenzhen Kaihong Digital Industry Development Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Kaihong"/>
26                <policyitem type="copyright" name="HiHope Open Source Organization ." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By HiHope"/>
27				<policyitem type="copyright" name="Rockchip Electronics Co., Ltd" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Rockchip"/>
28				<policyitem type="copyright" name="rockchip (Shanghai) Technologies Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Rockchip"/>
29				<policyitem type="copyright" name="Institute of Software, CAS." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By ISCAS"/>
30				<policyitem type="copyright" name="Broadcom" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Broadcom"/>
31				<policyitem type="copyright" name="Matthias Urlichs" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Matthias Urlichs"/>
32				<policyitem type="license" name="EndUserLicenseAgreement" path=".*" desc="EULA file"/>
33				<policyitem type="license" name="GPL" path=".*" desc="linux kernel adapter codes"/>
34				<policyitem type="license" name="MIT" path=".*" desc=""/>
35            </policy>
36        </policylist>
37        <filefilterlist>
38            <filefilter name="defaultFilter" desc="Files not to check">
39				<filteritem type="filepath" name="khdvk_3566b/rootfs/fstab.rk3566" desc="配置文件,不能加其他注释"/>
40                <filteritem type="filepath" name="khdvk_3566b/rootfs/fstab.required" desc="配置文件,不能加其他注释"/>
41                <filteritem type="filepath" name="khdvk_3566b/updater/config/fstab.updater" desc="配置文件,不能加其他注释"/>
42                <filteritem type="filepath" name="khdvk_3566b/kernel/rk3566-rp-kh.dts" desc="配置文件,不能加其他注释"/>
43				<filteritem type="filepath" name="khdvk_3566b/loader/*" desc="mirror image file"/>
44				<filteritem type="filepath" name="khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/.*" desc="thirdparty file"/>
45				<filteritem type="filepath" name="khdvk_3566b/kernel/bluetooth/BCM4345C5.hcd" desc="AP6256 bluetooth firmware"/>
46                <filteritem type="filepath" name="khdvk_3566b/wifi/proc/sys/net/ipv4/ping_group_range" desc="project configuration file"/>
47				<filteritem type="filepath" name="khdvk_3566b/wifi/ap6xxx/*" desc="mirror image file"/>
48                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
49                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
50                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp 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            </filefilter>
57            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
58                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
59                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
60                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
61            </filefilter>
62            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file 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="readmeFileNamePolicyFilter" desc="Filters for README 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="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource 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="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
78				<filteritem type="filepath" name="khdvk_3566b/loader/*" desc="rk3566 uboot image"/>
79				<filteritem type="filepath" name="khdvk_3566b/updater/config/rsa_private_key2048.pem" desc="Certificate file in PEM format"/>
80				<filteritem type="filename" name="*.png|*.bmp" desc="png and bmp file"/>
81                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
82                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
83                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
84            </filefilter>
85
86        </filefilterlist>
87        <licensematcherlist>
88            <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
89                <licensetext name="
90                    uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
91				 " desc=""/>
92                <licensetext name="
93                    uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
94				 " desc=""/>
95            </licensematcher-->
96        </licensematcherlist>
97    </oatconfig>
98</configuration>
99