rpms/clamav/F-7 clamav-0.91.2-open.patch, NONE, 1.1 clamav.spec, 1.56, 1.57
Enrico Scholz (ensc)
fedora-extras-commits at redhat.com
Sat Aug 25 10:48:22 UTC 2007
- Previous message (by thread): rpms/clamav/devel clamav-0.91.2-open.patch, NONE, 1.1 clamav.spec, 1.57, 1.58
- Next message (by thread): rpms/xfce4-quicklauncher-plugin/devel .cvsignore, 1.3, 1.4 sources, 1.3, 1.4 xfce4-quicklauncher-plugin-1.9.2-multilib.patch, 1.1, 1.2 xfce4-quicklauncher-plugin.spec, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ensc
Update of /cvs/extras/rpms/clamav/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17195
Modified Files:
clamav.spec
Added Files:
clamav-0.91.2-open.patch
Log Message:
fixed an open(2) issue
clamav-0.91.2-open.patch:
--- NEW FILE clamav-0.91.2-open.patch ---
--- clamav-0.91.2/clamd/dazukoio_compat12.c.open 2007-03-06 14:38:06.000000000 +0100
+++ clamav-0.91.2/clamd/dazukoio_compat12.c 2007-08-25 12:36:30.000000000 +0200
@@ -89,7 +89,7 @@ int dazukoRegister_TS_compat12(struct da
if (dazuko->device < 0)
{
- dazuko->device = open("/dev/dazuko", 0);
+ dazuko->device = open("/dev/dazuko", O_RDONLY);
if (dazuko->device < 0)
return -1;
--- clamav-0.91.2/shared/misc.c.open 2007-03-31 21:27:31.000000000 +0200
+++ clamav-0.91.2/shared/misc.c 2007-08-25 12:36:30.000000000 +0200
@@ -165,7 +165,7 @@ int filecopy(const char *src, const char
if((s = open(src, O_RDONLY|O_BINARY)) == -1)
return -1;
- if((d = open(dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY)) == -1) {
+ if((d = open(dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 0600)) == -1) {
close(s);
return -1;
}
Index: clamav.spec
===================================================================
RCS file: /cvs/extras/rpms/clamav/F-7/clamav.spec,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- clamav.spec 25 Aug 2007 10:12:34 -0000 1.56
+++ clamav.spec 25 Aug 2007 10:47:45 -0000 1.57
@@ -18,7 +18,7 @@
Summary: End-user tools for the Clam Antivirus scanner
Name: clamav
Version: 0.91.2
-Release: %release_func 1
+Release: %release_func 2
License: GPL
Group: Applications/File
@@ -35,6 +35,7 @@
Patch21: clamav-0.70-path.patch
Patch22: clamav-0.80-initoff.patch
Patch24: clamav-0.90rc3-private.patch
+Patch25: clamav-0.91.2-open.patch
BuildRoot: %_tmppath/%name-%version-%release-root
Requires: clamav-lib = %version-%release
Requires: data(clamav)
@@ -226,6 +227,7 @@
%patch21 -p1 -b .path
%patch22 -p1 -b .initoff
%patch24 -p1 -b .private
+%patch25 -p1 -b .open
perl -pi -e 's!^(#?LogFile ).*!\1/var/log/clamd.<SERVICE>!g;
s!^#?(LocalSocket ).*!\1/var/run/clamd.<SERVICE>/clamd.sock!g;
@@ -505,6 +507,9 @@
%changelog
+* Sat Aug 25 2007 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.91.2-2
+- fixed an open(2) issue
+
* Sat Aug 25 2007 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.91.2-1
- updated to 0.91.2 (SECURITY):
- CVE-2007-4510 DOS in RTF parser
- Previous message (by thread): rpms/clamav/devel clamav-0.91.2-open.patch, NONE, 1.1 clamav.spec, 1.57, 1.58
- Next message (by thread): rpms/xfce4-quicklauncher-plugin/devel .cvsignore, 1.3, 1.4 sources, 1.3, 1.4 xfce4-quicklauncher-plugin-1.9.2-multilib.patch, 1.1, 1.2 xfce4-quicklauncher-plugin.spec, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list