kern_proc.c (46568) | kern_proc.c (47028) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95 | 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95 |
34 * $Id: kern_proc.c,v 1.48 1999/05/03 23:57:21 billf Exp $ | 34 * $Id: kern_proc.c,v 1.49 1999/05/06 18:12:44 peter Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/sysctl.h> 41#include <sys/proc.h> 42#include <sys/malloc.h> --- 500 unchanged lines hidden (view full) --- 543 p->p_pgrp->pg_id != (pid_t)name[0]) 544 continue; 545 break; 546 547 case KERN_PROC_TTY: 548 if ((p->p_flag & P_CONTROLT) == 0 || 549 p->p_session == NULL || 550 p->p_session->s_ttyp == NULL || | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/sysctl.h> 41#include <sys/proc.h> 42#include <sys/malloc.h> --- 500 unchanged lines hidden (view full) --- 543 p->p_pgrp->pg_id != (pid_t)name[0]) 544 continue; 545 break; 546 547 case KERN_PROC_TTY: 548 if ((p->p_flag & P_CONTROLT) == 0 || 549 p->p_session == NULL || 550 p->p_session->s_ttyp == NULL || |
551 p->p_session->s_ttyp->t_dev != (dev_t)name[0]) | 551 p->p_session->s_ttyp->t_dev != 552 udev2dev((udev_t)name[0], 0)) |
552 continue; 553 break; 554 555 case KERN_PROC_UID: 556 if (p->p_ucred == NULL || 557 p->p_ucred->cr_uid != (uid_t)name[0]) 558 continue; 559 break; --- 39 unchanged lines hidden --- | 553 continue; 554 break; 555 556 case KERN_PROC_UID: 557 if (p->p_ucred == NULL || 558 p->p_ucred->cr_uid != (uid_t)name[0]) 559 continue; 560 break; --- 39 unchanged lines hidden --- |