Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115928774
D48555.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
713 B
Referenced Files
None
Subscribers
None
D48555.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
Thu, May 1, 1:08 PM (8 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16020521
Default Alt Text
D48555.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