diff options
author | alfred <alfred@FreeBSD.org> | 2002-08-16 07:01:43 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-08-16 07:01:43 +0000 |
commit | 997e76e7c026ba7f195acaeee3482396e76ee80c (patch) | |
tree | 662e0bc727e028fdd125af62d9fd4213afd693a6 /lib/libkvm | |
parent | abb7e5b79083fa0c00baa1166a095034858e36a4 (diff) | |
download | FreeBSD-src-997e76e7c026ba7f195acaeee3482396e76ee80c.zip FreeBSD-src-997e76e7c026ba7f195acaeee3482396e76ee80c.tar.gz |
Hide 'struct ucred' behind '#ifdef _KERNEL', this should stop userland
from attempting to use it for good. There is a catch, kvm_proc.c needs
to '#define _KERNEL' to get at the ucred.
Requested by: rwatson
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm_proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index d0e6517..a231942 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -52,6 +52,9 @@ static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; */ #include <sys/param.h> +#define _KERNEL +#include <sys/ucred.h> +#undef _KERNEL #include <sys/user.h> #include <sys/proc.h> #include <sys/exec.h> |