#3 Fix urlhaus mkdir and ownership
Opened 2 years ago by robert. Modified 2 years ago
rpms/ robert/clamav-unofficial-sigs urlhaus  into  rawhide

@@ -0,0 +1,45 @@ 

+ From af01c650a64b8a6ec455d36a00b07791acae8278 Mon Sep 17 00:00:00 2001

+ From: Jeffrey Jansma <me@perplexity.nl>

+ Date: Wed, 14 Apr 2021 08:46:26 +0200

+ Subject: [PATCH 1/2] Fix urlhaus ownership and mkdir

+ 

+ Fix urlhaus ownership and mkdir

+ ---

+  clamav-unofficial-sigs.sh | 1 +

+  1 file changed, 1 insertion(+)

+ 

+ diff --git a/clamav-unofficial-sigs.sh b/clamav-unofficial-sigs.sh

+ index 36b7cfb2..07e1020c 100755

+ --- a/clamav-unofficial-sigs.sh

+ +++ b/clamav-unofficial-sigs.sh

+ @@ -2763,6 +2763,7 @@ xshok_mkdir_ownership "$work_dir_sanesecurity"

+  xshok_mkdir_ownership "$work_dir_securiteinfo"

+  xshok_mkdir_ownership "$work_dir_work_configs"

+  xshok_mkdir_ownership "$work_dir_yararulesproject"

+ +xshok_mkdir_ownership "$work_dir_urlhaus"

+  

+  # Set secured access permissions to the GPG directory

+  perms chmod -f 0700 "${work_dir_gpg}"

+ 

+ From 05374882c679ec02360fbce71262aaf0a30662f2 Mon Sep 17 00:00:00 2001

+ From: Jeffrey Jansma <me@perplexity.nl>

+ Date: Wed, 14 Apr 2021 08:47:16 +0200

+ Subject: [PATCH 2/2] Add urlhaus to the update hours force

+ 

+ Add urlhaus to the update hours force

+ ---

+  clamav-unofficial-sigs.sh | 1 +

+  1 file changed, 1 insertion(+)

+ 

+ diff --git a/clamav-unofficial-sigs.sh b/clamav-unofficial-sigs.sh

+ index 07e1020c..885eff5f 100755

+ --- a/clamav-unofficial-sigs.sh

+ +++ b/clamav-unofficial-sigs.sh

+ @@ -2173,6 +2173,7 @@ if [ "$force_updates" == "yes" ] ; then

+    malwareexpert_update_hours="0"

+    malwarepatrol_update_hours="0"

+    yararulesproject_update_hours="0"

+ +  urlhaus_update_hours="0"

+    additional_update_hours="0"

+  fi

+  

file modified
+7 -1
@@ -9,7 +9,7 @@ 

  %endif

  Name:           clamav-unofficial-sigs

  Version:        7.2.5

- Release:        4%{?dist}

+ Release:        5%{?dist}

  Summary:        Scripts to download unofficial clamav signatures 

  Group:          Applications/System

  License:        BSD
@@ -18,6 +18,8 @@ 

  Source1:        clamav-unofficial-sigs.cron

  Source2:        clamav-unofficial-sigs.logrotate

  Source3:        clamav-unofficial-sigs.man8

+ # Fix urlhaus mkdir and ownership (https://github.com/extremeshok/clamav-unofficial-sigs/pull/390)

+ Patch0:         https://patch-diff.githubusercontent.com/raw/extremeshok/clamav-unofficial-sigs/pull/390.patch#/clamav-unofficial-sigs-7.2.5-urlhaus.patch

  BuildArch:      noarch

  BuildRequires:  bind-utils

  BuildRequires:  rsync
@@ -38,6 +40,7 @@ 

  

  %prep

  %setup -qn %{name}-%{version}

+ %patch0 -p1 -b .urlhaus

  sed -i -e '/user_configuration_complete/ s/^#//' config/user.conf

  sed -i -e '/ExecStart/ s^/usr/local/sbin^/usr/sbin^' systemd/clamav-unofficial-sigs.service

  
@@ -109,6 +112,9 @@ 

  %{_mandir}/man*/%{name}*

  

  %changelog

+ * Fri Aug 19 2022 Robert Scheck <robert@fedoraproject.org> - 7.2.5-5

+ - Added upstream patch to fix urlhaus mkdir and ownership

+ 

  * Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.2.5-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

  

Please merge this fix also especially to EPEL 9 and 8