Page MenuHomeFreeBSD

D57244.id178602.diff
No OneTemporary

D57244.id178602.diff

Index: sys/kern/kern_sig.c
===================================================================
--- sys/kern/kern_sig.c
+++ sys/kern/kern_sig.c
@@ -2038,6 +2038,16 @@
if (pid <= 0)
return (EINVAL);
+ /*
+ * A process in capability mode can send signals only to himself.
+ */
+ if (pid != td->td_proc->p_pid) {
+ if (CAP_TRACING(td))
+ ktrcapfail(CAPFAIL_SIGNAL, &signum);
+ if (IN_CAPABILITY_MODE(td))
+ return (ECAPMODE);
+ }
+
if ((signumf & __SIGQUEUE_TID) == 0) {
if ((p = pfind_any(pid)) == NULL)
return (ESRCH);

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 12, 7:58 PM (11 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36572554
Default Alt Text
D57244.id178602.diff (541 B)

Event Timeline