Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170073279
D14671.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
796 B
Referenced Files
None
Subscribers
None
D14671.diff
View Options
Index: head/sys/cam/scsi/scsi_enc.c
===================================================================
--- head/sys/cam/scsi/scsi_enc.c
+++ head/sys/cam/scsi/scsi_enc.c
@@ -29,6 +29,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_compat.h"
+
#include <sys/param.h>
#include <sys/conf.h>
@@ -39,9 +41,11 @@
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mutex.h>
+#include <sys/proc.h>
#include <sys/queue.h>
#include <sys/sbuf.h>
#include <sys/sx.h>
+#include <sys/sysent.h>
#include <sys/systm.h>
#include <sys/sysctl.h>
#include <sys/types.h>
@@ -354,6 +358,10 @@
void *addr;
int error, i;
+#ifdef COMPAT_FREEBSD32
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32))
+ return (ENOTTY);
+#endif
if (arg_addr)
addr = *((caddr_t *) arg_addr);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 4, 10:46 AM (13 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38224355
Default Alt Text
D14671.diff (796 B)
Attached To
Mode
D14671: Reject ioctls to SCSI enclosures from 32-bit compat processes.
Attached
Detach File
Event Timeline
Log In to Comment