-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from gsanchietti/no_official
- Disable clamav official signatures on request - Use new clamav unofficial config file NethServer/dev#5803
- Loading branch information
Showing
14 changed files
with
97 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
==================== | ||
nethserver-antivirus | ||
==================== | ||
|
||
Manage default options for all clamav instances. | ||
|
||
The configuration is saved inside the ``configuration`` database in the ``clamd`` key. | ||
|
||
Properties: | ||
|
||
- ``OfficialSignatures``: can be ``enabled`` or ``disabled``. If set to ``disabled``, all default signatures will be deleted and freshclam will be disabled. | ||
- ``UnofficialSignaturesRating``: can be ``low``, ``medium`` or ``high``. Select the rating risk of all sources. An higher rating means more virus detected but also an increased | ||
probability of false positives. | ||
|
||
Database example: :: | ||
|
||
clamd=configuration | ||
OfficialSignatures=disabled | ||
UnofficialSignaturesRating=low |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
root/etc/e-smith/db/configuration/defaults/clamd/OfficialSignatures
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enabled |
1 change: 1 addition & 0 deletions
1
root/etc/e-smith/db/configuration/defaults/clamd/UnofficialSignaturesRating
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
low |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 0 additions & 111 deletions
111
root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/10base
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/20dbs
This file was deleted.
Oops, something went wrong.
59 changes: 0 additions & 59 deletions
59
root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/30options
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
root/etc/e-smith/templates/etc/clamav-unofficial-sigs/user.conf/10base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This file contains user configuration settings for clamav-unofficial-sigs.sh | ||
################### | ||
# This is property of eXtremeSHOK.com | ||
# You are free to use, modify and distribute, however you may not remove this notice. | ||
# Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com | ||
# License: BSD (Berkeley Software Distribution) | ||
################## | ||
# | ||
# Script updates can be found at: https://github.com/extremeshok/clamav-unofficial-sigs | ||
# | ||
################## | ||
# | ||
# NOT COMPATIBLE WITH VERSION 3.XX / 4.XX CONFIG | ||
# | ||
################################################################################ | ||
# SEE MASTER.CONF FOR CONFIG EXPLAINATIONS | ||
################################################################################ | ||
|
||
# Values in this file will always override those in the master.conf and os.conf files. | ||
# This is useful to specify your authorisation/receipt codes and to always force certain options. | ||
# Please note, it is your responsibility to manage the contents of this file. | ||
# Values provided here are just examples, feel free to use any values from the main config file. | ||
|
7 changes: 7 additions & 0 deletions
7
root/etc/e-smith/templates/etc/clamav-unofficial-sigs/user.conf/20dbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#malwarepatrol_receipt_code="YOUR-RECEIPT-NUMBER" | ||
#malwarepatrol_product_code="8" | ||
#malwarepatrol_list="clamav_basic" # clamav_basic or clamav_ext | ||
#malwarepatrol_free="yes" | ||
|
||
#securiteinfo_authorisation_signature="YOUR-SIGNATURE-NUMBER" | ||
|
12 changes: 12 additions & 0 deletions
12
root/etc/e-smith/templates/etc/clamav-unofficial-sigs/user.conf/30rating
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Default dbs rating | ||
# valid rating: LOW, MEDIUM, HIGH | ||
default_dbs_rating="{{uc($clamd{'UnofficialSignaturesRating'} || 'low')}}" | ||
|
||
# Per Database | ||
# These ratings will override the global rating for the specific database | ||
# valid rating: LOW, MEDIUM, HIGH, DISABLE | ||
#sanesecurity_dbs_rating="" | ||
#securiteinfo_dbs_rating="" | ||
#linuxmalwaredetect_dbs_rating="" | ||
#yararulesproject_dbs_rating="" | ||
|
12 changes: 12 additions & 0 deletions
12
root/etc/e-smith/templates/etc/clamav-unofficial-sigs/user.conf/40options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# ========================= | ||
# Additional signature databases | ||
# ========================= | ||
#declare -a additional_dbs=( | ||
# ftp://ftp.example.net/pub/sigs.ndb | ||
# http://www.example.org/sigs.ldb | ||
#) #END ADDITIONAL DATABASES | ||
|
||
# Uncomment the following line to enable the script | ||
user_configuration_complete="yes" | ||
|
||
# https://eXtremeSHOK.com ###################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters