aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2022-03-24 10:10:03 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2022-03-24 10:20:51 +0000
commitbb92cd7bcd16f3f36cdbda18d8193619892715fb (patch)
tree76d20509830b20fb047be82e35f7b5097138dfcd /sys/security
parent9b597132aea7d75810ca90258022f81d07971444 (diff)
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_syscalls.c2
-rw-r--r--sys/security/mac_veriexec/mac_veriexec.c2
-rw-r--r--sys/security/mac_veriexec_parser/mac_veriexec_parser.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/audit/audit_syscalls.c b/sys/security/audit/audit_syscalls.c
index 0747d9499e27..86875d31c266 100644
--- a/sys/security/audit/audit_syscalls.c
+++ b/sys/security/audit/audit_syscalls.c
@@ -818,7 +818,7 @@ sys_auditctl(struct thread *td, struct auditctl_args *uap)
#else
VOP_UNLOCK(vp);
#endif
- NDFREE(&nd, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nd);
if (vp->v_type != VREG) {
vn_close(vp, AUDIT_CLOSE_FLAGS, td->td_ucred, td);
return (EINVAL);
diff --git a/sys/security/mac_veriexec/mac_veriexec.c b/sys/security/mac_veriexec/mac_veriexec.c
index a11ee68766ec..7a5b747ef7a2 100644
--- a/sys/security/mac_veriexec/mac_veriexec.c
+++ b/sys/security/mac_veriexec/mac_veriexec.c
@@ -705,7 +705,7 @@ cleanup_file:
error = namei(&nd);
if (error != 0)
break;
- NDFREE(&nd, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nd);
/* Check the fingerprint status of the vnode */
error = mac_veriexec_check_vp(td->td_ucred, nd.ni_vp, VVERIFY);
diff --git a/sys/security/mac_veriexec_parser/mac_veriexec_parser.c b/sys/security/mac_veriexec_parser/mac_veriexec_parser.c
index 41f70bb7074a..88c399f85bd5 100644
--- a/sys/security/mac_veriexec_parser/mac_veriexec_parser.c
+++ b/sys/security/mac_veriexec_parser/mac_veriexec_parser.c
@@ -244,7 +244,7 @@ open_file(const char *path, struct nameidata *nid)
NDINIT(nid, LOOKUP, 0, UIO_SYSSPACE, path, curthread);
rc = vn_open(nid, &flags, 0, NULL);
- NDFREE(nid, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(nid);
if (rc != 0)
return (rc);
@@ -349,7 +349,7 @@ parse_entry(char *entry, char *prefix)
}
rc = open_file(path, &nid);
- NDFREE(&nid, NDF_ONLY_PNBUF);
+ NDFREE_PNBUF(&nid);
if (rc != 0)
return (rc);