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 158995 Details for
Bug 247868
oidentd masquarade doesn't work under newest kernels (again)
[?]
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]
Patch for oidentd under kernel 2.6.21 and up
oidentd_linux_2.6.21.patch (text/plain), 1.33 KB, created by
Vilius Šumskas
on 2007-07-11 19:50:31 UTC
(
hide
)
Description:
Patch for oidentd under kernel 2.6.21 and up
Filename:
MIME Type:
Creator:
Vilius Šumskas
Created:
2007-07-11 19:50:31 UTC
Size:
1.33 KB
patch
obsolete
>diff -ur oidentd.orig/src/kernel/linux.c oidentd-2.0.8/src/kernel/linux.c >--- oidentd.orig/src/kernel/linux.c 2006-05-22 06:58:53.000000000 +0300 >+++ oidentd-2.0.8/src/kernel/linux.c 2007-07-11 21:28:56.000000000 +0300 >@@ -48,6 +48,7 @@ > #define CFILE6 "/proc/net/tcp6" > #define MASQFILE "/proc/net/ip_masquerade" > #define CONNTRACK "/proc/net/ip_conntrack" >+#define NFCONNTRACK "/proc/net/nf_conntrack" > > static int netlink_sock; > extern struct sockaddr_storage proxy; >@@ -82,7 +83,15 @@ > debug("fopen: %s: %s", CONNTRACK, strerror(errno)); > return false; > } >- masq_fp = fopen("/dev/null", "r"); >+ >+ masq_fp = fopen(NFCONNTRACK, "r"); >+ if (masq_fp == NULL) { >+ if (errno != ENOENT) { >+ debug("fopen: %s: %s", NFCONNTRACK, strerror(errno)); >+ return false; >+ } >+ masq_fp = fopen("/dev/null", "r"); >+ } > } > > netfilter = true; >@@ -367,6 +376,15 @@ > &nport_temp, &mport_temp); > } > >+ if (ret != 21) { >+ ret = sscanf(buf, >+ "%*15s %*d %15s %*d %*d ESTABLISHED src=%d.%d.%d.%d dst=%d.%d.%d.%d sport=%d dport=%d packets=%*d bytes=%*d src=%d.%d.%d.%d dst=%d.%d.%d.%d sport=%d dport=%d", >+ proto, &l1, &l2, &l3, &l4, &r1, &r2, &r3, &r4, >+ &masq_lport_temp, &masq_fport_temp, >+ &nl1, &nl2, &nl3, &nl4, &nr1, &nr2, &nr3, &nr4, >+ &nport_temp, &mport_temp); >+ } >+ > if (ret != 21) > continue; >
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 247868
: 158995