mirror of
https://gitee.com/openharmony/security_selinux
synced 2024-11-23 05:19:57 +00:00
73a5be4917
Signed-off-by: steven_q <qichanggui@huawei.com> Change-Id: Ib0e6e22fa54b1f3a44bee7b1171b4099f97d4caa
83 lines
5.6 KiB
XML
83 lines
5.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!-- Copyright (c) 2021-2022 Huawei Device Co., Ltd.
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
|
||
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.
|
||
|
||
-->
|
||
|
||
<configuration>
|
||
<oatconfig>
|
||
<licensefile/>
|
||
<policylist>
|
||
<policy name="projectPolicy" desc="">
|
||
<policyitem type="copyright" name="北京万里红科技有限公司" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
|
||
<!--policyitem type="compatibility" name="GPL-2.0+" path="abc/.*" desc="Process that runs independently, invoked by the X process."/-->
|
||
<!--policyitem type="license" name="LGPL" path="abc/.*" desc="Dynamically linked by module X"/-->
|
||
<!--policyitem type="copyright" name="xxx" path="abc/.*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by X Company"/-->
|
||
</policy>
|
||
</policylist>
|
||
<filefilterlist>
|
||
<filefilter name="defaultFilter" desc="Files not to check">
|
||
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
|
||
</filefilter>
|
||
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
|
||
<filteritem type="filename" name="*.cfg" desc="config file,can not add license head"/>
|
||
<filteritem type="filename" name="passwd" desc="config file,can not add license head"/>
|
||
<filteritem type="filename" name="group" desc="config file,can not add license head"/>
|
||
</filefilter>
|
||
<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
|
||
<filteritem type="filename" name="*.cfg" desc="config file,can not add license head"/>
|
||
<filteritem type="filename" name="passwd" desc="config file,can not add license head"/>
|
||
<filteritem type="filename" name="group" desc="config file,can not add license head"/>
|
||
</filefilter>
|
||
<filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
|
||
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
|
||
</filefilter>
|
||
<filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
|
||
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
|
||
</filefilter>
|
||
<filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
|
||
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
|
||
</filefilter>
|
||
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
|
||
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
|
||
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
|
||
<filteritem type="filename" name="*.jpg|*.png|*.gif|*.pdf" desc="already checked"/>
|
||
<filteritem type="filepath" name="services/test/unittest/test_data/proc/*" desc="启动功能UT测试的资源文件"/>
|
||
</filefilter>
|
||
|
||
</filefilterlist>
|
||
<licensematcherlist>
|
||
<!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
|
||
<licensetext name="
|
||
uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||
" desc=""/>
|
||
<licensetext name="
|
||
uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||
" desc=""/>
|
||
</licensematcher-->
|
||
</licensematcherlist>
|
||
</oatconfig>
|
||
</configuration>
|