Assert that a ucred is unshared before we remap its ids.
This commit is contained in:
parent
8ceded814a
commit
6d85fccce7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user