Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/kern_auth.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/kern_auth.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.74 retrieving revision 1.75 diff -u -p -r1.74 -r1.75 --- src/sys/kern/kern_auth.c 2015/08/08 07:53:51 1.74 +++ src/sys/kern/kern_auth.c 2015/10/06 22:13:39 1.75 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_auth.c,v 1.74 2015/08/08 07:53:51 mlelstv Exp $ */ +/* $NetBSD: kern_auth.c,v 1.75 2015/10/06 22:13:39 christos Exp $ */ /*- * Copyright (c) 2005, 2006 Elad Efrat @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.74 2015/08/08 07:53:51 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.75 2015/10/06 22:13:39 christos Exp $"); #include #include @@ -36,6 +36,7 @@ __KERNEL_RCSID(0, "$NetBSD: kern_auth.c, #include #include #include +#define __KAUTH_PRIVATE #include #include #include @@ -54,35 +55,6 @@ struct kauth_key { specificdata_key_t ks_key; /* key */ }; -/* - * Credentials. - * - * A subset of this structure is used in kvm(3) (src/lib/libkvm/kvm_proc.c) - * and should be synchronized with this structure when the update is - * relevant. - */ -struct kauth_cred { - /* - * Ensure that the first part of the credential resides in its own - * cache line. Due to sharing there aren't many kauth_creds in a - * typical system, but the reference counts change very often. - * Keeping it separate from the rest of the data prevents false - * sharing between CPUs. - */ - u_int cr_refcnt; /* reference count */ -#if COHERENCY_UNIT > 4 - uint8_t cr_pad[COHERENCY_UNIT - 4]; -#endif - uid_t cr_uid; /* user id */ - uid_t cr_euid; /* effective user id */ - uid_t cr_svuid; /* saved effective user id */ - gid_t cr_gid; /* group id */ - gid_t cr_egid; /* effective group id */ - gid_t cr_svgid; /* saved effective group id */ - u_int cr_ngroups; /* number of groups */ - gid_t cr_groups[NGROUPS]; /* group memberships */ - specificdata_reference cr_sd; /* specific data */ -}; /* * Listener.