Deleted Added
full compact
kern_proc.c (193255) kern_proc.c (194498)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/kern/kern_proc.c 193255 2009-06-01 20:26:51Z rwatson $");
33__FBSDID("$FreeBSD: head/sys/kern/kern_proc.c 194498 2009-06-19 17:10:35Z brooks $");
34
35#include "opt_compat.h"
36#include "opt_ddb.h"
37#include "opt_kdtrace.h"
38#include "opt_ktrace.h"
39#include "opt_kstack_pages.h"
40#include "opt_stack.h"
41

--- 683 unchanged lines hidden (view full) ---

725 kp->ki_fd = p->p_fd;
726 kp->ki_vmspace = p->p_vmspace;
727 kp->ki_flag = p->p_flag;
728 cred = p->p_ucred;
729 if (cred) {
730 kp->ki_uid = cred->cr_uid;
731 kp->ki_ruid = cred->cr_ruid;
732 kp->ki_svuid = cred->cr_svuid;
34
35#include "opt_compat.h"
36#include "opt_ddb.h"
37#include "opt_kdtrace.h"
38#include "opt_ktrace.h"
39#include "opt_kstack_pages.h"
40#include "opt_stack.h"
41

--- 683 unchanged lines hidden (view full) ---

725 kp->ki_fd = p->p_fd;
726 kp->ki_vmspace = p->p_vmspace;
727 kp->ki_flag = p->p_flag;
728 cred = p->p_ucred;
729 if (cred) {
730 kp->ki_uid = cred->cr_uid;
731 kp->ki_ruid = cred->cr_ruid;
732 kp->ki_svuid = cred->cr_svuid;
733 /* XXX bde doesn't like KI_NGROUPS */
734 kp->ki_ngroups = min(cred->cr_ngroups, KI_NGROUPS);
735 bcopy(cred->cr_groups, kp->ki_groups,
736 kp->ki_ngroups * sizeof(gid_t));
733 kp->ki_ngroups = cred->cr_ngroups;
734 kp->ki_groups = cred->cr_groups;
737 kp->ki_rgid = cred->cr_rgid;
738 kp->ki_svgid = cred->cr_svgid;
739 kp->ki_cr_flags = cred->cr_flags;
740 /* If jailed(cred), emulate the old P_JAILED flag. */
741 if (jailed(cred)) {
742 kp->ki_flag |= P_JAILED;
743 /* If inside the jail, use 0 as a jail ID. */
744 if (cred->cr_prison != curthread->td_ucred->cr_prison)

--- 1158 unchanged lines hidden ---
735 kp->ki_rgid = cred->cr_rgid;
736 kp->ki_svgid = cred->cr_svgid;
737 kp->ki_cr_flags = cred->cr_flags;
738 /* If jailed(cred), emulate the old P_JAILED flag. */
739 if (jailed(cred)) {
740 kp->ki_flag |= P_JAILED;
741 /* If inside the jail, use 0 as a jail ID. */
742 if (cred->cr_prison != curthread->td_ucred->cr_prison)

--- 1158 unchanged lines hidden ---