Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147440861
D48555.1783392370.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
713 B
Referenced Files
None
Subscribers
None
D48555.1783392370.diff
View Options
diff --git a/sys/nlm/nlm_prot_impl.c b/sys/nlm/nlm_prot_impl.c
--- a/sys/nlm/nlm_prot_impl.c
+++ b/sys/nlm/nlm_prot_impl.c
@@ -39,6 +39,7 @@
#include <sys/mount.h>
#include <sys/priv.h>
#include <sys/proc.h>
+#include <sys/jail.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/syscall.h>
@@ -1711,7 +1712,11 @@
nlm_grace_threshold = time_uptime + uap->grace_period;
nlm_next_idle_check = time_uptime + NLM_IDLE_PERIOD;
- return nlm_server_main(uap->addr_count, uap->addrs);
+ CURVNET_SET(TD_TO_VNET(td));
+ error = nlm_server_main(uap->addr_count, uap->addrs);
+ CURVNET_RESTORE();
+
+ return (error);
}
/**********************************************************************/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 7, 2:46 AM (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29021174
Default Alt Text
D48555.1783392370.diff (713 B)
Attached To
Mode
D48555: nlm: set vnet(9) context in the NLM syscall
Attached
Detach File
Event Timeline
Log In to Comment