Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299356 Details for
Bug 230191
fail2ban needs to use FD_CLOEXEC
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
stop leaking file descriptors on fork/exec
fail2ban-0.8.2-fd_cloexec.patch (text/plain), 610 bytes, created by
Jonathan Underwood
on 2008-03-27 16:31:24 UTC
(
hide
)
Description:
stop leaking file descriptors on fork/exec
Filename:
MIME Type:
Creator:
Jonathan Underwood
Created:
2008-03-27 16:31:24 UTC
Size:
610 bytes
patch
obsolete
>--- filter.py.orig 2008-03-27 16:26:59.000000000 +0000 >+++ filter.py 2008-03-27 15:29:48.000000000 +0000 >@@ -428,6 +428,7 @@ > # is computed and compared to the previous hash of this line. > > import md5 >+import fcntl > > class FileContainer: > >@@ -455,6 +456,11 @@ > > def open(self): > self.__handler = open(self.__filename) >+ >+ # Set the file descriptor to be FD_CLOEXEC >+ fd = self.__handler.fileno() >+ fcntl.fcntl (self.__handler.fileno(), fcntl.F_SETFD, fd | fcntl.FD_CLOEXEC) >+ > firstLine = self.__handler.readline() > # Computes the MD5 of the first line. > myHash = md5.new(firstLine).digest()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 230191
:
148856
|
160888
| 299356