Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175499700
D60574.id189331.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
729 B
Referenced Files
None
Subscribers
None
D60574.id189331.diff
View Options
diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c
--- a/sys/compat/linux/linux_signal.c
+++ b/sys/compat/linux/linux_signal.c
@@ -822,7 +822,10 @@
int error;
int sig;
- if (!LINUX_SIG_VALID(args->sig))
+ /*
+ * Allow signal 0 as a means to check for privileges
+ */
+ if (!LINUX_SIG_VALID(args->sig) && args->sig != 0)
return (EINVAL);
error = copyin(args->info, &linfo, sizeof(linfo));
@@ -833,7 +836,11 @@
/* SI_USER, SI_KERNEL */
return (EPERM);
- sig = linux_to_bsd_signal(args->sig);
+ if (args->sig > 0)
+ sig = linux_to_bsd_signal(args->sig);
+ else
+ sig = 0;
+
ksiginfo_init(&ksi);
error = lsiginfo_to_siginfo(td, &linfo, &ksi.ksi_info, sig);
if (error != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 12, 6:55 AM (5 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40581584
Default Alt Text
D60574.id189331.diff (729 B)
Attached To
Mode
D60574: linuxulator: Accept 0 as signal in rt_sigqueueinfo
Attached
Detach File
Event Timeline
Log In to Comment