tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kauth_cred_geteuid reports surprising result



Hi

I have a user process that runs as uid root. It calls seteuid/setegid
to temporarily drop privileges. geteuid and geteuid report the 
correct euid and egid.

But in the kernel, on a system call, kauth_cred_geteuid(l->l_cred) 
and kauth_cred_getegid(l->l_cred) still give me 0 for euid and egid.

I assume I am missing sothing obvious for anyone knowledgable. Is it
obvious for anyone?

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index