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 302005 Details for
Bug 441559
lockd not aware of statd -n switch
[?]
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.
draft of lockd part
lockd-nsmif.patch (text/x-patch), 2.79 KB, created by
Janne Karhunen
on 2008-04-10 15:01:34 UTC
(
hide
)
Description:
draft of lockd part
Filename:
MIME Type:
Creator:
Janne Karhunen
Created:
2008-04-10 15:01:34 UTC
Size:
2.79 KB
patch
obsolete
>diff -Naur lockd.org/svc4proc.c lockd/svc4proc.c >--- lockd.org/svc4proc.c 2008-04-10 10:26:51.000000000 -0400 >+++ lockd/svc4proc.c 2008-04-09 14:57:50.000000000 -0400 >@@ -24,6 +24,8 @@ > static u32 nlm4svc_callback(struct svc_rqst *, u32, struct nlm_res *); > static void nlm4svc_callback_exit(struct rpc_task *); > >+extern unsigned int nlm_nsm_interface; >+ > /* > * Obtain client and file from arguments > */ >@@ -426,8 +428,9 @@ > struct nlm_host *host; > > dprintk("lockd: SM_NOTIFY called\n"); >- if (saddr.sin_addr.s_addr != htonl(INADDR_LOOPBACK) >- || ntohs(saddr.sin_port) >= 1024) { >+ if ((saddr.sin_addr.s_addr != htonl(INADDR_LOOPBACK)) >+ || (nlm_nsm_interface && (saddr.sin_addr.s_addr != htonl(nlm_nsm_interface))) >+ || (ntohs(saddr.sin_port) >= 1024)) { > printk(KERN_WARNING > "lockd: rejected NSM callback from %08x:%d\n", > ntohl(rqstp->rq_addr.sin_addr.s_addr), >diff -Naur lockd.org/svc.c lockd/svc.c >--- lockd.org/svc.c 2008-04-10 10:26:51.000000000 -0400 >+++ lockd/svc.c 2008-04-09 13:51:42.000000000 -0400 >@@ -56,6 +56,7 @@ > static unsigned long nlm_grace_period; > static unsigned long nlm_timeout = LOCKD_DFLT_TIMEO; > static int nlm_udpport, nlm_tcpport; >+unsigned int nlm_nsm_interface = 0; > > /* > * Constants needed for the sysctl interface. >@@ -86,6 +87,7 @@ > { > nlmsvc_grace_period = 0; > } >+ > int > nlmsvc_dispatch(struct svc_rqst *rqstp, u32 *statp) > { >@@ -417,6 +419,16 @@ > .extra1 = (int *) &nlm_port_min, > .extra2 = (int *) &nlm_port_max, > }, >+ { >+ .ctl_name = CTL_UNNUMBERED, >+ .procname = "nlm_nsm_interface", >+ .data = &nlm_nsm_interface, >+ .maxlen = sizeof(unsigned int), >+ .mode = 0644, >+ .proc_handler = &proc_dointvec, >+ .extra1 = 0, >+ .extra2 = 0, >+ }, > { .ctl_name = 0 } > }; > >diff -Naur lockd.org/svcproc.c lockd/svcproc.c >--- lockd.org/svcproc.c 2008-04-10 10:26:51.000000000 -0400 >+++ lockd/svcproc.c 2008-04-09 14:57:04.000000000 -0400 >@@ -25,6 +25,8 @@ > static u32 nlmsvc_callback(struct svc_rqst *, u32, struct nlm_res *); > static void nlmsvc_callback_exit(struct rpc_task *); > >+extern unsigned int nlm_nsm_interface; >+ > #ifdef CONFIG_LOCKD_V4 > static u32 > cast_to_nlm(u32 status, u32 vers) >@@ -450,8 +452,9 @@ > struct nlm_host *host; > > dprintk("lockd: SM_NOTIFY called\n"); >- if (saddr.sin_addr.s_addr != htonl(INADDR_LOOPBACK) >- || ntohs(saddr.sin_port) >= 1024) { >+ if ((saddr.sin_addr.s_addr != htonl(INADDR_LOOPBACK)) >+ || (nlm_nsm_interface && (saddr.sin_addr.s_addr != htonl(nlm_nsm_interface))) >+ || (ntohs(saddr.sin_port) >= 1024)) { > printk(KERN_WARNING > "lockd: rejected NSM callback from %08x:%d\n", > ntohl(rqstp->rq_addr.sin_addr.s_addr),
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 Raw
Actions:
View
Attachments on
bug 441559
:
302005
|
302006
|
302152
|
302153
|
304538
|
309071