aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ucred.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-11-14 19:20:37 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-11-14 19:20:37 +0000
commit25600ad516463a241b564066ac3e45b2944e97ff (patch)
tree8820c9dcdfd753e2b96e8017a535f20821e440b4 /sys/sys/ucred.h
parentd1ca25be49ab19232d650dd40f52e2dd7567b600 (diff)
downloadsrc-25600ad516463a241b564066ac3e45b2944e97ff.tar.gz
src-25600ad516463a241b564066ac3e45b2944e97ff.zip
cred: reorder cr_audit to be closer to the lock
This makes cr_uid avoid sharing.
Notes
Notes: svn path=/head/; revision=367692
Diffstat (limited to 'sys/sys/ucred.h')
-rw-r--r--sys/sys/ucred.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h
index 3075ce354bcf..a8326946c26a 100644
--- a/sys/sys/ucred.h
+++ b/sys/sys/ucred.h
@@ -63,6 +63,7 @@ struct ucred {
struct mtx cr_mtx;
u_int cr_ref; /* (c) reference count */
u_int cr_users; /* (c) proc + thread using this cred */
+ struct auditinfo_addr cr_audit; /* Audit properties. */
#define cr_startcopy cr_uid
uid_t cr_uid; /* effective user id */
uid_t cr_ruid; /* real user id */
@@ -78,7 +79,6 @@ struct ucred {
void *cr_pspare2[2]; /* general use 2 */
#define cr_endcopy cr_label
struct label *cr_label; /* MAC label */
- struct auditinfo_addr cr_audit; /* Audit properties. */
gid_t *cr_groups; /* groups */
int cr_agroups; /* Available groups */
gid_t cr_smallgroups[XU_NGROUPS]; /* storage for small groups */