diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-06-15 15:57:42 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-06-15 15:57:42 +0000 |
commit | 51aa556e270fbb206f8f6dcb0700585c15baefb5 (patch) | |
tree | 15f873f3c855e1970da668890f4b2a204bbc6cf7 /sys | |
parent | 59a924bc28e1b37d0af4498c8c2b3457895e56f9 (diff) | |
download | FreeBSD-src-51aa556e270fbb206f8f6dcb0700585c15baefb5.zip FreeBSD-src-51aa556e270fbb206f8f6dcb0700585c15baefb5.tar.gz |
Various cr*() calls believed to be MPSAFE, since the uidinfo
code is locked down.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_prot.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 6836954..6a81296 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1644,6 +1644,7 @@ cr_canseesocket(struct ucred *cred, struct socket *so) /* * Allocate a zeroed cred structure. + * MPSAFE */ struct ucred * crget(void) @@ -1661,6 +1662,7 @@ crget(void) /* * Claim another reference to a ucred structure. + * MPSAFE */ struct ucred * crhold(struct ucred *cr) @@ -1675,6 +1677,7 @@ crhold(struct ucred *cr) /* * Free a cred structure. * Throws away space when ref count gets to 0. + * MPSAFE */ void crfree(struct ucred *cr) @@ -1712,6 +1715,7 @@ crfree(struct ucred *cr) /* * Check to see if this ucred is shared. + * MPSAFE */ int crshared(struct ucred *cr) @@ -1726,6 +1730,7 @@ crshared(struct ucred *cr) /* * Copy a ucred's contents from a template. Does not block. + * MPSAFE */ void crcopy(struct ucred *dest, struct ucred *src) @@ -1746,6 +1751,7 @@ crcopy(struct ucred *dest, struct ucred *src) /* * Dup cred struct to a new held one. + * MPSAFE */ struct ucred * crdup(struct ucred *cr) @@ -1772,6 +1778,7 @@ cred_free_thread(struct thread *td) /* * Fill in a struct xucred based on a struct ucred. + * MPSAFE */ void cru2x(struct ucred *cr, struct xucred *xcr) @@ -1787,6 +1794,7 @@ cru2x(struct ucred *cr, struct xucred *xcr) /* * small routine to swap a thread's current ucred for the correct one * taken from the process. + * MPSAFE */ void cred_update_thread(struct thread *td) |