Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: [elad-kernelauth] src/sys/ufs/ext2fs
On Apr 20, 9:16pm, elad%NetBSD.org@localhost (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
Home |
Main Index |
Thread Index |
Old Index