mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Assert that a ucred is unshared before we remap its ids.
This commit is contained in:
parent
c516499ad4
commit
dee2bb2540
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue