aboutsummaryrefslogtreecommitdiff
path: root/sys/nlm
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2025-02-01 01:02:17 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2025-02-01 09:00:26 +0000
commit59f9d8c4bf6485a1143e2df514dea5060551a3ee (patch)
tree29402e23ba1ffb8a1b542797774462673635f80f /sys/nlm
parent030c028255fd89c84c43fd63ab1574f21f040287 (diff)
Diffstat (limited to 'sys/nlm')
-rw-r--r--sys/nlm/nlm_prot_impl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/nlm/nlm_prot_impl.c b/sys/nlm/nlm_prot_impl.c
index 5275f4362a71..02b7383cd640 100644
--- 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 @@ sys_nlm_syscall(struct thread *td, struct nlm_syscall_args *uap)
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);
}
/**********************************************************************/