Browse Source

Chase KPI change in 13-CURRENT from FreeBSD

Upstream FreeBSD commit f121d45000 dropped
the last argument from VOP_UNLOCK.

Signed-off-by:	Shawn Webb <shawn.webb@hardenedbsd.org>
master
Shawn Webb 4 months ago
parent
commit
3ed56140ff
Signed by: Shawn Webb <shawn.webb@hardenedbsd.org> GPG Key ID: FF2E67A277F8E1FA
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      kmod/integriforce.c

+ 5
- 0
kmod/integriforce.c View File

@@ -245,7 +245,12 @@ sysctl_integriforce_so(SYSCTL_HANDLER_ARGS)
return (err);
}

#if __FreeBSD_version >= 1300074
VOP_UNLOCK(nd.ni_vp);
#else
VOP_UNLOCK(nd.ni_vp, 0);
#endif

key.sk_jid = req->td->td_ucred->cr_prison->pr_id;
key.sk_type = secadm_integriforce_rule;

Loading…
Cancel
Save