> 
> I made a kernel module that logs execve system calls by intercepting the
> execve syscall, log it and then execute the original syscall. This was
> pretty straightforward to do, and it works beautifully on STABLE, but on
> CURRENT it bombs on this line:
> 
> uid = p->p_cred->pc_ucred->cr_uid;
> 
> So, my question: how does one obtain the UID from the proc struct in
> CURRENT? Preferably in a way that will both work on CURRENT and STABLE.
> 

Before KSE changes went in, it was p->p_ucred->cr_uid, that's what I use
in very similar module with kernel from about August 2001. Now it's
probably changed again, but I don't cvsup for now, so I don't know
exactly.

Regards,
Eugene


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to