Bugzilla – Attachment 73220 Details for
Bug 156975
capi4hylafax: insecure tmp file handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
fix
capi4hylafax-secfix.diff (text/plain), 6.50 KB, created by
Karsten Keil
on 2006-03-16 07:44:56 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Karsten Keil
Created:
2006-03-16 07:44:56 UTC
Size:
6.50 KB
patch
obsolete
>Index: capi4hylafax-01.03.00/config.faxCAPI >=================================================================== >--- capi4hylafax-01.03.00.orig/config.faxCAPI >+++ capi4hylafax-01.03.00/config.faxCAPI >@@ -95,9 +95,9 @@ FaxReceiveGroup: dialout > # > # Information about the order of events in faxing are saved in the "LogFile". > # >-# default "/tmp/capifax.log" >+# default "/var/log/capifax.log" > # >-LogFile: /tmp/capifax.log >+LogFile: /var/log/capifax.log > > > # Der Befehl "LogTraceLevel" gibt die Menge der Daten an, die in ein LogFile >Index: capi4hylafax-01.03.00/LIESMICH.html >=================================================================== >--- capi4hylafax-01.03.00.orig/LIESMICH.html >+++ capi4hylafax-01.03.00/LIESMICH.html >@@ -362,7 +362,7 @@ > <LI>Zum Faxempfang führen Sie einfach "c2faxrecv &", zum Beispiel in einem Startskript, aus, wenn es nicht bereits in "etc/inittab" erfolgt ist.</LI> > <LI>"Device"-Namen: Da die Anwendungen als CAPI 2.0-Anwendungen auf CAPI 2.0 direkt aufsetzen, ist diese Angabe eigentlich nicht nötig. In der Kommandozeile kann der Name des Gerätes (device) angegeben werden, HylaFAX trägt diesen Eintrag aber automatisch ein. Dieser Name wird nur zur Signalisierung an HylaFAX und zur Bestimmung des Namens der Konfigurationsdatei benutzt: "config.[Device Name]". Auf diesem Wege können also auch mehrere "c2faxrecv"-Dämons inklusive ihrer Konfigurationsdateien verwaltet werden. Eine alternative Möglichkeit ist der "-C"-Schalter.</LI> > <LI>Sollten nach der Installation unerwartete Probleme beim Faxversand auftreten, so wurde die Konfigurationsveränderung durch HylaFAX eventuell noch nicht korrekt verarbeitet. In diesem Fall ist ein manueller Aufruf von "faxsetup" oder alternativ "faxmodem faxCAPI" als "root" mit den Rechten eines Superusers hilfreich, um HylaFAX die Änderung mitzuteilen.</LI> >- <LI>Für ein ausführliches Logging muss im config.faxCAPI das "#" vor dem Eintrag "LogTraceLevel:4" entfernt werden. Das Logfile wird standardmäßig unter "/tmp/capifax.log" abgelegt.</LI> >+ <LI>Für ein ausführliches Logging muss im config.faxCAPI das "#" vor dem Eintrag "LogTraceLevel:4" entfernt werden. Das Logfile wird standardmäßig unter "/var/log/capifax.log" abgelegt.</LI> > </UL> > > <P><A HREF="#Inhalt">Zurück zum Anfang</A></P> >Index: capi4hylafax-01.03.00/README.html >=================================================================== >--- capi4hylafax-01.03.00.orig/README.html >+++ capi4hylafax-01.03.00/README.html >@@ -341,7 +341,7 @@ > <LI>For fax reception, simply run "c2faxrecv &", for instance in a start scrpt, if it has not already been run in "etc/inittab".</LI> > <LI>"Device" Name: Because the applications are CAPI 2.0 applications based directly on CAPI, this entry is not actually necessary. However, the name of the device can be entered in the commando line, or is entered automatically by HylaFAX. This name is used only for signaling to HylaFAX and to determine the name of the configuration file: "config.[Device Name]". Thus it is also possible to manage multiple "c2faxrecv" demons along with their configuration files. Another option is the "-C" switch.</LI> > <LI>If problems occur after installation during fax transmission, HylaFAX probably did not yet process the modifications in the configuration file correctly. In this case, entering "faxsetup" or "faxmodem faxCAPI" manually with "root" or superuser rights can be used to implement the changes in HylaFAX.</LI> >- <LI>For comprehensive logging, delete in canfig.faxCAPI the "#" preceding the "LogTraceLevel:4" entry. The log file is saved by default to "/tmp/capifax.log".</LI> >+ <LI>For comprehensive logging, delete in canfig.faxCAPI the "#" preceding the "LogTraceLevel:4" entry. The log file is saved by default to "/var/log/capifax.log".</LI> > </UL> > > <P><A HREF="#Inhalt">Back to top</A></P> >Index: capi4hylafax-01.03.00/src/defaults.h.in >=================================================================== >--- capi4hylafax-01.03.00.orig/src/defaults.h.in >+++ capi4hylafax-01.03.00/src/defaults.h.in >@@ -39,7 +39,7 @@ > #define DEFAULT_FILE_MODE 0600 > #define DEFAULT_RECVPROG_NAME "CapiFaxRecv" > #define DEFAULT_SENDPROG_NAME "CapiFaxSend" >-#define DEFAULT_C4H_LOGFILENAME "/tmp/capifax.log" >+#define DEFAULT_C4H_LOGFILENAME "/var/log/capifax.log" > > #define FILE_EXTENSION_TIFF ".tif" > #define FILE_EXTENSION_SFF ".sff" >Index: capi4hylafax-01.03.00/src/faxrecv/faxrecv.cpp >=================================================================== >--- capi4hylafax-01.03.00.orig/src/faxrecv/faxrecv.cpp >+++ capi4hylafax-01.03.00/src/faxrecv/faxrecv.cpp >@@ -213,7 +213,7 @@ void CFaxReceive::IsConnected (cp_ncpi_a > #ifdef GENERATE_DEBUGSFFDATAFILE > dwarning (DebugSffDataFile == 0); > if (!DebugSffDataFile) { >- DebugSffDataFile = fopen ("/tmp/c2faxrecv_dbgdatafile.sff", "w"); >+ DebugSffDataFile = fopen ("/var/log/c2faxrecv_dbgdatafile.sff", "w"); > } > #endif > NotifyFIFO ('I'); // Comm id >Index: capi4hylafax-01.03.00/src/faxsend/faxsend.cpp >=================================================================== >--- capi4hylafax-01.03.00.orig/src/faxsend/faxsend.cpp >+++ capi4hylafax-01.03.00/src/faxsend/faxsend.cpp >@@ -428,7 +428,7 @@ void CFaxSend::IsConnected (cp_ncpi_all > } else { > #ifdef GENERATE_DEBUGSFFDATAFILE > dassert (DebugSffDataFile == 0); >- DebugSffDataFile = fopen ("/tmp/c2faxsend_dbgdatafile.sff", "w"); >+ DebugSffDataFile = fopen ("/var/log/c2faxsend_dbgdatafile.sff", "w"); > #endif > SendData(); > } >Index: capi4hylafax-01.03.00/src/standard/ExtFuncs.h >=================================================================== >--- capi4hylafax-01.03.00.orig/src/standard/ExtFuncs.h >+++ capi4hylafax-01.03.00/src/standard/ExtFuncs.h >@@ -26,7 +26,7 @@ > > #define USE_DEBUG_INFO_CLASS 2 > #define DEBUG_INDENT_WIDTH 0 >- //#define DEBUG_FILE_NAME "/tmp/c2faxfcalls.log" >+ //#define DEBUG_FILE_NAME "/var/log/c2faxfcalls.log" > > #else >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 156975
: 73220