summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-10-26 07:28:14 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-10-26 07:28:14 +0000
commit188f8fd51e66686e09730143ee4e11961a7b76e1 (patch)
tree7e92d19330c0d35f6b98eb524e2447bc747c8e6e /sys
parent848dc74ae4f2f6c7bb3e92e30188ae59694cd994 (diff)
A process can send a signal to another process if the uid of the signalling
process is the same as the saved uid of the signalled process
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 1c1d04b3b92..6a524063520 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.8 1996/10/20 07:37:22 tholo Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.9 1996/10/26 07:28:13 tholo Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -79,6 +79,7 @@ void killproc __P((struct proc *, char *));
#define CANSIGNAL(p, pc, q, signum) \
((pc)->pc_ucred->cr_uid == 0 || \
(pc)->p_ruid == (q)->p_cred->p_ruid || \
+ (pc)->p_ruid == (q)->p_cred->p_svuid || \
(pc)->pc_ucred->cr_uid == (q)->p_cred->p_ruid || \
(pc)->p_ruid == (q)->p_ucred->cr_uid || \
(pc)->pc_ucred->cr_uid == (q)->p_ucred->cr_uid || \