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.
I'm proud to be paying taxes in the United States. The only thing is
-- I could be just as proud for half the money.
-- Arthur Godfrey
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message