# ============LICENSE_START======================================================= # Copyright (C) 2019 The Nordix Foundation. All rights reserved. # ================================================================================ # 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. # # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= # This file is executed by the /etc/cron/daily/clamav shell script # It is used to exclude specified file types and directories from the virus scan. # # FIND_FILE_FILTER_ARRAY: # This parameter should be defined as an array of "find" file filter arguments, useful # for specifying file types that should be ignored # See "man find" for help on file filters for the "find" command # # FIND_PRUNE_FILTER_ARRAY: # This parameter should be defined as an array of "find" path prune filter arguments, useful # for specifying directory trees that should be ignored # See "man find" for help on pruning paths for the "find" command # # EXAMPLES: # FIND_FILE_FILTER_ARRAY=(! -iname '*.vdi' ! -iname '*.mp4' ! -name 'Hello World*') # FIND_PRUNE_FILTER_ARRAY="/proc|/run|/home/user/VirtualBox VMs" FIND_FILE_FILTER_ARRAY=(! -iname '*.vdi' ! -name '*.iso') FIND_PRUNE_FILTER_ARRAY=(\( -path /proc -o -path /run -o -path /dev -o -path /sys \) -prune -o)