LWP_CACHE_CREDS(9) | Kernel Developer's Manual | LWP_CACHE_CREDS(9) |
Each LWPs have its cached credential so that it can be used without worrying about potential of other LWP changing the process' credential. kauth_cred_get() returns the cached credential.
LWP_CACHE_CREDS() is called by MD entry code for system call and various traps. LWPs which can live in kernel for long period should call LWP_CACHE_CREDS() by itsself to refresh its credential.
LWP_CACHE_CREDS() takes the following arguments.
LWP_CACHE_CREDS() might be implemented as a macro.
December 9, 2007 | NetBSD 6.1 |