mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 21:09:28 +00:00
Assert that a ucred is unshared before we remap its ids.
This commit is contained in:
parent
c516499ad4
commit
dee2bb2540
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85208
@ -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