Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2002 12:47:31 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Emiel Kollof <coolvibe@hackerheaven.org>
Cc:        freebsd-current@freebsd.org
Subject:   RE: kld question
Message-ID:  <XFMail.020110124731.jhb@FreeBSD.org>
In-Reply-To: <20020110150538.GA26886@laptop.hackerheaven.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 10-Jan-02 Emiel Kollof wrote:
> 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.

p->p_ucred->cr_uid right now, but it will change before too long. :)


-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020110124731.jhb>