From a92a8621636869003cc7fada3282dabf8e2908d8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 31 Aug 1997 20:42:33 +0000 Subject: for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uid and euid as well, then deliver them using new csignal() interface which ensures that pgid setting process is permitted to signal the pgid process(es). Thanks to newsham@aloha.net for extensive help and discussion. --- sys/net/bpfdesc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net/bpfdesc.h') diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h index 5bf7e55418c..bd5f50179a9 100644 --- a/sys/net/bpfdesc.h +++ b/sys/net/bpfdesc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bpfdesc.h,v 1.2 1997/02/24 13:33:56 niklas Exp $ */ +/* $OpenBSD: bpfdesc.h,v 1.3 1997/08/31 20:42:30 deraadt Exp $ */ /* $NetBSD: bpfdesc.h,v 1.11 1995/09/27 18:30:42 thorpej Exp $ */ /* @@ -77,6 +77,8 @@ struct bpf_d { int bd_async; /* non-zero if packet reception should generate signal */ int bd_sig; /* signal to send upon packet reception */ pid_t bd_pgid; /* process or group id for signal */ + uid_t bd_siguid; /* uid for process that set pgid */ + uid_t bd_sigeuid; /* euid for process that set pgid */ #if BSD < 199103 u_char bd_selcoll; /* true if selects collide */ int bd_timedout; -- cgit v1.2.3