From 6d85fccce7fdcfe3bf0e0f761bbee8af401e2760 Mon Sep 17 00:00:00 2001 From: jhb Date: Sat, 20 Oct 2001 03:30:34 +0000 Subject: Assert that a ucred is unshared before we remap its ids. --- sys/fs/umapfs/umap_subr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/fs/umapfs') diff --git a/sys/fs/umapfs/umap_subr.c b/sys/fs/umapfs/umap_subr.c index c61fe7c..44730bd 100644 --- a/sys/fs/umapfs/umap_subr.c +++ b/sys/fs/umapfs/umap_subr.c @@ -362,6 +362,8 @@ umap_mapids(v_mount, credp) if (credp == NOCRED) return; + KASSERT(!crshared(credp), ("remapping a shared cred")); + /* Find uid entry in map */ uid = (uid_t) umap_findid(credp->cr_uid, -- cgit v1.1