diff options
author | jhb <jhb@FreeBSD.org> | 2001-10-20 03:30:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-10-20 03:30:34 +0000 |
commit | 6d85fccce7fdcfe3bf0e0f761bbee8af401e2760 (patch) | |
tree | 79575af2d3a8ba199ff3490d06a87dff8b6b8f3e /sys | |
parent | 8ceded814ab0034367a46a7c847a70fb4cb45b2e (diff) | |
download | FreeBSD-src-6d85fccce7fdcfe3bf0e0f761bbee8af401e2760.zip FreeBSD-src-6d85fccce7fdcfe3bf0e0f761bbee8af401e2760.tar.gz |
Assert that a ucred is unshared before we remap its ids.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/umapfs/umap_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |