Add install script for clamav scans
[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 executed by the /etc/cron/daily/clamav shell script
20 # It is used to exclude specified file types and directories from the virus scan.
21 #
22 # FIND_FILE_FILTER_ARRAY:
23 #  This parameter should be defined as an array of "find" file filter arguments, useful
24 #  for specifying file types that should be ignored
25 #  See "man find" for help on file filters for the "find" command
26 #
27 # FIND_PRUNE_FILTER_ARRAY:
28 #  This parameter should be defined as an array of "find" path prune filter arguments, useful
29 #  for specifying directory trees that should be ignored
30 #  See "man find" for help on pruning paths for the "find" command
31 #
32 # EXAMPLES:
33 # FIND_FILE_FILTER_ARRAY=(! -iname '*.vdi' ! -iname '*.mp4' ! -name 'Hello World*')
34 # FIND_PRUNE_FILTER_ARRAY="/proc|/run|/home/user/VirtualBox VMs"
35
36 FIND_FILE_FILTER_ARRAY=(! -iname '*.vdi' ! -name '*.iso')
37 FIND_PRUNE_FILTER_ARRAY=(\( -path /proc -o -path /run -o -path /dev -o -path /sys \) -prune -o)