summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/security/mac/mac_syscalls.c')
-rw-r--r--sys/security/mac/mac_syscalls.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/security/mac/mac_syscalls.c b/sys/security/mac/mac_syscalls.c
index 5cff185..c4b0606 100644
--- a/sys/security/mac/mac_syscalls.c
+++ b/sys/security/mac/mac_syscalls.c
@@ -203,17 +203,9 @@ __mac_set_proc(struct thread *td, struct __mac_set_proc_args *uap)
mac_cred_relabel(newcred, intlabel);
p->p_ucred = newcred;
- /*
- * Grab additional reference for use while revoking mmaps, prior to
- * releasing the proc lock and sharing the cred.
- */
- crhold(newcred);
PROC_UNLOCK(p);
-
- mac_cred_mmapped_drop_perms(td, newcred);
-
- crfree(newcred); /* Free revocation reference. */
crfree(oldcred);
+ mac_proc_vm_revoke(td);
out:
mac_cred_label_free(intlabel);
OpenPOWER on IntegriCloud