236c43ba68bdaa83f90bde8ebedc8f113a812d95
[infra/tools.git] / clamav / etc / clamav / clamscan_excludes.conf
1 # ============LICENSE_START=======================================================
2 #  Copyright (C) 2019 The Nordix Foundation. All rights reserved.
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 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18
19 # This file is sourced as a shell script
20 # It's only purpose is to exclude user defined
21 # file types and directories from the clamscan
22 # process triggered by
23 # /etc/cron.daily/clamav
24 #
25 # FINDFILEFILTER. This parameter should be defined as an array of "find" file filter arguments
26 #                 See "man find" for help on file filters for the "find" command
27 #
28 # FINDPRUNEFILTER.  This parameter should be defined as an array of "find" path prune filter arguments
29 #                   See "man find" for help on pruning paths for the "find" command
30 #
31 # EXAMPLES:
32 # FIND_FILE_FILTER_ARRAY=(! -iname '*.vdi' ! -iname '*.mp4' ! -name 'Hello World*')
33 # FIND_PRUNE_FILTER_ARRAY="/proc|/run|/home/user/VirtualBox VMs"
34
35 FIND_FILE_FILTER_ARRAY=(! -iname '*.vdi' ! -name '*.iso')
36 FIND_PRUNE_FILTER_ARRAY=(\( -path /proc -o -path /run -o -path /dev -o -path /sys \) -prune -o)