From owner-cvs-all Sun Nov 21 11: 3:26 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D3A1314DD9; Sun, 21 Nov 1999 11:03:21 -0800 (PST) (envelope-from phk@FreeBSD.org) Received: (from phk@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA70570; Sun, 21 Nov 1999 11:03:21 -0800 (PST) (envelope-from phk@FreeBSD.org) Message-Id: <199911211903.LAA70570@freefall.freebsd.org> From: Poul-Henning Kamp Date: Sun, 21 Nov 1999 11:03:21 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_proc.c kern_prot.c kern_sig.c sys_process.c src/sys/miscfs/procfs procfs.h procfs_dbregs.c procfs_fpregs.c procfs_mem.c procfs_regs.c procfs_status.c procfs_vnops.c src/sys/sys proc.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk phk 1999/11/21 11:03:21 PST Modified files: sys/kern kern_proc.c kern_prot.c kern_sig.c sys_process.c sys/miscfs/procfs procfs.h procfs_dbregs.c procfs_fpregs.c procfs_mem.c procfs_regs.c procfs_status.c procfs_vnops.c sys/sys proc.h Log: Introduce the new function p_trespass(struct proc *p1, struct proc *p2) which returns zero or an errno depending on the legality of p1 trespassing on p2. Replace kern_sig.c:CANSIGNAL() with call to p_trespass() and one extra signal related check. Replace procfs.h:CHECKIO() macros with calls to p_trespass(). Only show command lines to process which can trespass on the target process. Revision Changes Path 1.61 +2 -2 src/sys/kern/kern_proc.c 1.50 +26 -1 src/sys/kern/kern_prot.c 1.71 +7 -13 src/sys/kern/kern_sig.c 1.51 +2 -3 src/sys/kern/sys_process.c 1.31 +1 -14 src/sys/miscfs/procfs/procfs.h 1.3 +2 -2 src/sys/miscfs/procfs/procfs_dbregs.c 1.10 +2 -2 src/sys/miscfs/procfs/procfs_fpregs.c 1.43 +2 -2 src/sys/miscfs/procfs/procfs_mem.c 1.10 +2 -2 src/sys/miscfs/procfs/procfs_regs.c 1.18 +2 -2 src/sys/miscfs/procfs/procfs_status.c 1.75 +3 -3 src/sys/miscfs/procfs/procfs_vnops.c 1.92 +2 -1 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message