Subject: Re: CVS commit: [elad-kernelauth] src/sys/ufs/ext2fs
To: Elad Efrat <elad@NetBSD.org>
From: Christos Zoulas <christos@zoulas.com>
List: source-changes
Date: 04/20/2006 16:04:51
On Apr 20, 9:16pm, elad@NetBSD.org (Elad Efrat) wrote:
-- Subject: Re: CVS commit: [elad-kernelauth] src/sys/ufs/ext2fs
| Userland should not use anything inside a kauth_cred_t, and so I don't
| see a problem with using #ifdef _KERNEL around kauth.h's kernel-only
| parts, and adding a userspace-only typedef for kauth_cred_t to a void *
| which is unused anyway.
|
| What guarantees that people don't start directly accessing members of
| struct kauth_cred?
|
That they don't have access/knowledge to what's inside struct kauth_cred?
If they do have access/knowledge to struct kauth_cred, they can cast the
kauth_cred_t to that and use it anyway.
christos