aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2022-09-17 15:22:04 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2022-09-17 15:41:37 +0000
commita75d1ddd74312f5dd79bc1e965f7077679659f2e (patch)
tree497b828949aeecb5a6ad0d732709f95f2945e938 /sys/security
parent9e4f35ac25538fb426c459400f0c36e085546ffa (diff)
Diffstat (limited to 'sys/security')
-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 d8979a70b72d..9bc334686aa4 100644
--- a/sys/security/mac/mac_syscalls.c
+++ b/sys/security/mac/mac_syscalls.c
@@ -430,7 +430,7 @@ sys___mac_set_fd(struct thread *td, struct __mac_set_fd_args *uap)
break;
}
vp = fp->f_vnode;
- error = vn_start_write(vp, &mp, V_WAIT | PCATCH);
+ error = vn_start_write(vp, &mp, V_WAIT | V_PCATCH);
if (error != 0) {
mac_vnode_label_free(intlabel);
break;
@@ -536,7 +536,7 @@ kern___mac_set_path(struct thread *td, const char *path_p, struct mac *mac_p,
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);
+ error = vn_start_write(nd.ni_vp, &mp, V_WAIT | V_PCATCH);
if (error == 0) {
error = vn_setlabel(nd.ni_vp, intlabel,
td->td_ucred);