From fd22d5412a1070b4d246fd214adad09041a53661 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 21 Nov 1999 19:03:20 +0000 Subject: 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. --- sys/fs/procfs/procfs_fpregs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/procfs/procfs_fpregs.c') diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c index b3331e5..d4a4cfe 100644 --- a/sys/fs/procfs/procfs_fpregs.c +++ b/sys/fs/procfs/procfs_fpregs.c @@ -60,7 +60,7 @@ procfs_dofpregs(curp, p, pfs, uio) char *kv; int kl; - if (!CHECKIO(curp, p)) + if (p_trespass(curp, p)) return EPERM; kl = sizeof(r); kv = (char *) &r; -- cgit v1.1