summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2005-02-13 16:42:08 +0000
committersobomax <sobomax@FreeBSD.org>2005-02-13 16:42:08 +0000
commit1d558007d0e84104e9e49a8c08e4a4f6faad3a81 (patch)
tree55af5c404f315b928f52273e849b0e73080b7f0d /sys/compat/svr4
parent5775bba72ee8cddb1a59602a8d654da0e8f4e1b3 (diff)
downloadFreeBSD-src-1d558007d0e84104e9e49a8c08e4a4f6faad3a81.zip
FreeBSD-src-1d558007d0e84104e9e49a8c08e4a4f6faad3a81.tar.gz
Split out kill(2) syscall service routine into user-level and kernel part, the
former is callable from user space and the latter from the kernel one. Make kernel version take additional argument which tells if the respective call should check for additional restrictions for sending signals to suid/sugid applications or not. Make all emulation layers using non-checked version, since signal numbers in emulation layers can have different meaning that in native mode and such protection can cause misbehaviour. As a result remove LIBTHR from the signals allowed to be delivered to a suid/sugid application. Requested (sorta) by: rwatson MFC after: 2 weeks
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r--sys/compat/svr4/svr4_signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_signal.c b/sys/compat/svr4/svr4_signal.c
index 1a3f7f1..2ccebd5 100644
--- a/sys/compat/svr4/svr4_signal.c
+++ b/sys/compat/svr4/svr4_signal.c
@@ -521,7 +521,7 @@ svr4_sys_kill(td, uap)
return (EINVAL);
ka.pid = uap->pid;
ka.signum = SVR4_SVR42BSD_SIG(uap->signum);
- return kill(td, &ka);
+ return kern_kill(td, &ka, 0);
}
OpenPOWER on IntegriCloud