Date: Thu, 10 Jan 2002 18:34:16 +0300 (MSK) From: "Eugene L. Vorokov" <vel@bugz.infotecs.ru> To: coolvibe@hackerheaven.org (Emiel Kollof) Cc: freebsd-hackers@freebsd.org Subject: Re: kld question Message-ID: <200201101534.g0AFYHU99684@bugz.infotecs.ru> In-Reply-To: <20020110150538.GA26886@laptop.hackerheaven.org> from "Emiel Kollof" at Jan 10, 2002 04:05:38 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201101534.g0AFYHU99684>