Page MenuHomeFreeBSD

D48555.diff
No OneTemporary

D48555.diff

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

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)

Event Timeline