• 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-->
17
18<!--
19This is the configuration file template for OpenHarmony OSS Audit Tool,
20please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
21-->
22
23<configuration>
24    <oatconfig>
25        <licensefile>TaC-mksh.txt</licensefile>
26        <policylist>
27            <policy name="projectPolicy" desc="">
28                <policyitem type="compatibility" name="MirOS License" path=".*" desc="The MirOS Licence (OSI approved)."/>
29                <policyitem type="compatibility" name="ISC License" path="strlcpy.c" desc="BSD-0-CLAUSE License."/>
30            </policy>
31        </policylist>
32        <filefilterlist>
33            <filefilter name="defaultFilter" desc="Files not to check">
34                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
35                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
36                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
37            </filefilter>
38            <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
39                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
40                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
41                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
42            </filefilter>
43            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
44                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
45                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
46                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
47            </filefilter>
48            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
49                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
50                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
51                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
52            </filefilter>
53            <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
54                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
55                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
56                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
57            </filefilter>
58            <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
59                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
60                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
61                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
62            </filefilter>
63            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
64                <filteritem type="filename" name="mksh.ico" desc="官方自带文件"/>
65                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
66                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
67            </filefilter>
68
69        </filefilterlist>
70        <licensematcherlist>
71            <licensematcher name="MirOS License" desc="">
72                <licensetext name="
73                                  * Provided that these terms and disclaimer and all copyright notices
74                                  * are retained or reproduced in an accompanying document, permission
75                                  * is granted to deal in this work without restriction, including un-
76                                  * limited rights to use, publicly perform, distribute, sell, modify,
77                                  * merge, give away, or sublicence.
78				 " desc=""/>
79            </licensematcher>
80            <licensematcher name="ISC License" desc="">
81                <licensetext name="
82                                  * Permission to use, copy, modify, and distribute this software for any
83                                  * purpose with or without fee is hereby granted, provided that the above
84                                  * copyright notice and this permission notice appear in all copies.
85				 " desc=""/>
86            </licensematcher>
87        </licensematcherlist>
88    </oatconfig>
89</configuration>
90