aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-11-25 21:43:06 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-11-25 22:50:42 +0000
commit7e1d3eefd410ca0fbae5a217422821244c3eeee4 (patch)
tree4bd504069949f38227970cbe8e49c45665f06279 /sys/security/mac
parentc40fee6f7d26862260f0accc1dfeaa7b1328f5fd (diff)
downloadsrc-7e1d3eefd410ca0fbae5a217422821244c3eeee4.tar.gz
src-7e1d3eefd410ca0fbae5a217422821244c3eeee4.zip
vfs: remove the unused thread argument from NDINIT*
See b4a58fbf640409a1 ("vfs: remove cn_thread") Bump __FreeBSD_version to 1400043.
Diffstat (limited to 'sys/security/mac')
-rw-r--r--sys/security/mac/mac_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac/mac_syscalls.c b/sys/security/mac/mac_syscalls.c
index e7d71b2e22da..eca9b18fb1dc 100644
--- a/sys/security/mac/mac_syscalls.c
+++ b/sys/security/mac/mac_syscalls.c
@@ -361,7 +361,7 @@ kern___mac_get_path(struct thread *td, const char *path_p, struct mac *mac_p,
}
buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
- NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p, td);
+ NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p);
error = namei(&nd);
if (error)
goto out;
@@ -534,7 +534,7 @@ kern___mac_set_path(struct thread *td, const char *path_p, struct mac *mac_p,
if (error)
goto out;
- NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p, td);
+ NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p);
error = namei(&nd);
if (error == 0) {
error = vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH);