/[smecontribs]/rpms/smeserver-clamav-unofficial-sigs/contribs10/smeserver-clamav-unofficial-sigs-0.1.0-bz11597-sme10.patch
ViewVC logotype

Diff of /rpms/smeserver-clamav-unofficial-sigs/contribs10/smeserver-clamav-unofficial-sigs-0.1.0-bz11597-sme10.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Mon Jun 13 03:04:18 2022 UTC Revision 1.3 by jpp, Tue Jun 14 03:28:37 2022 UTC
# Line 1  Line 1 
1  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks smeserver-clamav-unofficial-sigs-0.1.0/createlinks  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks smeserver-clamav-unofficial-sigs-0.1.0/createlinks
2  --- smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks      2015-06-10 03:32:04.000000000 -0400  --- smeserver-clamav-unofficial-sigs-0.1.0.old/createlinks      2015-06-10 03:32:04.000000000 -0400
3  +++ smeserver-clamav-unofficial-sigs-0.1.0/createlinks  2022-06-12 22:56:30.436000000 -0400  +++ smeserver-clamav-unofficial-sigs-0.1.0/createlinks  2022-06-13 22:22:14.397000000 -0400
4  @@ -2,4 +2,15 @@  @@ -2,4 +2,15 @@
5    
6   use esmith::Build::CreateLinks qw(:all);   use esmith::Build::CreateLinks qw(:all);
# Line 12  diff -Nur --no-dereference smeserver-cla Line 12  diff -Nur --no-dereference smeserver-cla
12  +templates2events("/etc/clamav-unofficial-sigs/os.conf",$event);  +templates2events("/etc/clamav-unofficial-sigs/os.conf",$event);
13  +#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/clamav-unofficial-sigs");  +#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/clamav-unofficial-sigs");
14  +#clamav-unofficial-sigs.service  clamav-unofficial-sigs.timer  +#clamav-unofficial-sigs.service  clamav-unofficial-sigs.timer
15  +event_link("systemd-default", $event, "10");  +event_link("systemd-default", $event, "88");
16  +event_link("systemd-reload", $event, "50");  +event_link("systemd-reload", $event, "89");
17  +  +event_link("clamav-unofficial-sigs-folders", $event, "55");
18  +#use esmith::Build::Backup qw(:all);  +#use esmith::Build::Backup qw(:all);
19  +#backup_includes("clamav-unofficial-sigs", qw(/etc/clamav-unofficial-sigs/user.conf));  +#backup_includes("clamav-unofficial-sigs", qw(/etc/clamav-unofficial-sigs/master.conf /etc/clamav-unofficial-sigs/user.conf  /var/lib/clamav-unofficial-sigs/));
20  +  +
21  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb
22  --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb   2015-06-10 03:32:04.000000000 -0400  --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/honeynet.hdb   2015-06-10 03:32:04.000000000 -0400
# Line 113  diff -Nur --no-dereference smeserver-cla Line 113  diff -Nur --no-dereference smeserver-cla
113  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb   1969-12-31 19:00:00.000000000 -0500  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/defaults/clamav-unofficial-sigs/winnow_malware_links.ndb   1969-12-31 19:00:00.000000000 -0500
114  @@ -1 +0,0 @@  @@ -1 +0,0 @@
115  -ss  -ss
116    diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs
117    --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs       1969-12-31 19:00:00.000000000 -0500
118    +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/db/configuration/migrate/80clamav-unofficial-sigs   2022-06-13 22:18:47.928000000 -0400
119    @@ -0,0 +1,8 @@
120    +{
121    +    my $clamav_unof = $DB->get("clamav-unofficial-sigs") ||
122    +        $DB->new_record("clamav-unofficial-sigs", { type => "service" });
123    +
124    +    $clamav_unof->delete_prop($_) for ( qw(honeynet.hdb  jurlbl.ndb  phish.ndb  sanesecurity.ftm  securiteinfobat.hdb  securiteinfoelf.hdb  securiteinfohtml.hdb    securiteinfopdf.hdb  spamimg.hdb               winnow_malware_links.ndb
125    +junk.ndb      mbl.ndb     rogue.hdb  scam.ndb          securiteinfodos.hdb  securiteinfo.hdb     securiteinfooffice.hdb  securiteinfosh.hdb         winnow_malware.hdb) );
126    +
127    +}
128    diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init
129    --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init      1969-12-31 19:00:00.000000000 -0500
130    +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/events/actions/clamav-unofficial-sigs-init  2022-06-13 22:03:58.107000000 -0400
131    @@ -0,0 +1,6 @@
132    +#!/bin/bash
133    +# create missing folder to avoid error
134    +# see https://github.com/extremeshok/clamav-unofficial-sigs/pull/390 https://github.com/extremeshok/clamav-unofficial-sigs/pull/400
135    +mkdir -p /var/lib/clamav-unofficial-sigs/dbs-uh
136    +mkdir -p /var/lib/clamav-unofficial-sigs/dbs-yara
137    +chown clamupdate:clamupdate /var/lib/clamav-unofficial-sigs/*
138  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path
139  --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path        2015-06-10 03:32:04.000000000 -0400  --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path        2015-06-10 03:32:04.000000000 -0400
140  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path    1969-12-31 19:00:00.000000000 -0500  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/clamav-unofficial-sigs.conf/010Path    1969-12-31 19:00:00.000000000 -0500
# Line 317  diff -Nur --no-dereference smeserver-cla Line 339  diff -Nur --no-dereference smeserver-cla
339  +  +
340  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases  diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases
341  --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases       1969-12-31 19:00:00.000000000 -0500  --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases       1969-12-31 19:00:00.000000000 -0500
342  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases   2022-06-12 23:00:57.665000000 -0400  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/040Databases   2022-06-13 23:27:29.208000000 -0400
343  @@ -0,0 +1,74 @@  @@ -0,0 +1,104 @@
344  +{  +{
345  +  +
346  +my %db = $DB->get('clamav-unofficial-sigs')->props;  +my %db = $DB->get('clamav-unofficial-sigs')->props;
# Line 376  diff -Nur --no-dereference smeserver-cla Line 398  diff -Nur --no-dereference smeserver-cla
398  +# Yara-Rule Project, automatically disabled if clamav is older than 0.100 and enable_yararules is disabled  +# Yara-Rule Project, automatically disabled if clamav is older than 0.100 and enable_yararules is disabled
399  +yararulesproject_enabled={((${'clamav-unofficial-sigs'}{'yararulesproject_enabled'} || "yes") eq "yes") ? "\"yes\"" : "\"no\"";}  +yararulesproject_enabled={((${'clamav-unofficial-sigs'}{'yararulesproject_enabled'} || "yes") eq "yes") ? "\"yes\"" : "\"no\"";}
400  +  +
401    +#Enables yararules in the various databases, automatically
402    +enable_yararules={((${'clamav-unofficial-sigs'}{'enable_yararules'} || "no") eq "yes") ? "\"yes\"" : "\"no\"";}  
403    +
404    +
405    +# valid rating: LOW, MEDIUM, HIGH, DISABLE
406    +{
407    +my $defaultDBR = (( ${'clamav-unofficial-sigs'}{'default_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'default_dbs_rating'} : 'MEDIUM' ;
408    +
409    +$OUT .= "default_dbs_rating=\"$defaultDBR\"\n";
410    +
411    +$OUT .= "# Per Database
412    +# These ratings will override the global rating for the specific database
413    +# valid ratings: LOW | MEDIUM | HIGH | DISABLE\n";
414    +
415    +my $lmd = (( ${'clamav-unofficial-sigs'}{'linuxmalwaredetect_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'linuxmalwaredetect_dbs_rating'} : 'NOP' ;
416    +$OUT .= "linuxmalwaredetect_dbs_rating=\"$lmd\"\n" unless $lmd eq 'NOP';
417    +my $ss = (( ${'clamav-unofficial-sigs'}{'sanesecurity_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'sanesecurity_dbs_rating'} : 'NOP' ;
418    +$OUT .= "sanesecurity_dbs_rating=\"$ss\"\n" unless $ss eq 'NOP';
419    +my $si = (( ${'clamav-unofficial-sigs'}{'securiteinfo_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'securiteinfo_dbs_rating'} : 'NOP' ;
420    +$OUT .= "securiteinfo_dbs_rating=\"$si\"\n" unless $si eq 'NOP';
421    +my $uhd = (( ${'clamav-unofficial-sigs'}{'urlhaus_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'urlhaus_dbs_rating'} : 'NOP' ;
422    +$OUT .= "urlhaus_dbs_rating=\"$uhd\"\n" unless $uhd eq 'NOP';
423    +my $yrp = (( ${'clamav-unofficial-sigs'}{'yararulesproject_dbs_rating'} || "NOP") ~~ ['LOW', 'MEDIUM', 'HIGH', 'DISABLE']) ? ${'clamav-unofficial-sigs'}{'yararulesproject_dbs_rating'} : 'NOP' ;
424    +$OUT .= "yararulesproject_dbs_rating=\"$yrp\"\n" unless $yrp eq 'NOP';
425    +
426    +}
427    +
428    +# ========================
429    +# Additional Databases
430    +# ========================
431  +{  +{
432  +return "# additional disabled\n"  unless ((${'clamav-unofficial-sigs'}{'additional_enabled'} || "yes") eq "yes");  +return "# additional disabled\n"  unless ((${'clamav-unofficial-sigs'}{'additional_enabled'} || "yes") eq "yes");
433  +  +
# Line 422  diff -Nur --no-dereference smeserver-cla Line 474  diff -Nur --no-dereference smeserver-cla
474  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/099UserConfigComplete  2022-06-12 22:53:04.000000000 -0400  +++ smeserver-clamav-unofficial-sigs-0.1.0/root/etc/e-smith/templates/etc/clamav-unofficial-sigs/os.conf/099UserConfigComplete  2022-06-12 22:53:04.000000000 -0400
475  @@ -0,0 +1 @@  @@ -0,0 +1 @@
476  +user_configuration_complete="yes"  +user_configuration_complete="yes"
477    diff -Nur --no-dereference smeserver-clamav-unofficial-sigs-0.1.0.old/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf smeserver-clamav-unofficial-sigs-0.1.0/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf
478    --- smeserver-clamav-unofficial-sigs-0.1.0.old/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf     1969-12-31 19:00:00.000000000 -0500
479    +++ smeserver-clamav-unofficial-sigs-0.1.0/root/usr/lib/systemd/system/clamav-unofficial-sigs.service.d/50-koozali.conf 2022-06-13 22:19:57.355000000 -0400
480    @@ -0,0 +1,2 @@
481    +[Install]
482    +WantedBy=sme-server.target


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed