Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 289757 Details for
Bug 386721
app-emulation/open-vm-tools-kmod-0.0.20110821.471295 fails to build against hardened-sources-3.0.4-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
vmci driver.c patch
vmci-driver.patch (text/plain), 1.80 KB, created by
Andrew Dean
on 2011-10-13 20:46:08 UTC
(
hide
)
Description:
vmci driver.c patch
Filename:
MIME Type:
Creator:
Andrew Dean
Created:
2011-10-13 20:46:08 UTC
Size:
1.80 KB
patch
obsolete
>diff -Naur open-vm-tools-2011.09.23-491607-before/modules/linux/vmci/linux/driver.c open-vm-tools-2011.09.23-491607-after/modules/linux/vmci/linux/driver.c >--- open-vm-tools-2011.09.23-491607-before/modules/linux/vmci/linux/driver.c 2011-09-26 15:16:30.000000000 -0500 >+++ open-vm-tools-2011.09.23-491607-after/modules/linux/vmci/linux/driver.c 2011-10-13 15:13:19.266661488 -0500 >@@ -241,7 +241,24 @@ > #define LinuxDriverUnlockIoctlPerFD(mutex) do {} while (0) > #endif > >-static struct file_operations vmuser_fops; >+/* >+ * Moved file operations initialize here because of incompatibilites >+ * with Gentoo hardened profile/hardend Linux 3. >+ */ >+static struct file_operations vmuser_fops = { >+ .owner = THIS_MODULE, >+ .poll = LinuxDriverPoll, >+#ifdef HAVE_UNLOCKED_IOCTL >+ .unlocked_ioctl = LinuxDriver_UnlockedIoctl, >+#else >+ .ioctl = LinuxDriver_Ioctl, >+#endif >+#ifdef HAVE_COMPAT_IOCTL >+ .compat_ioctl = LinuxDriver_UnlockedIoctl, >+#endif >+ .open = LinuxDriver_Open, >+ .release = LinuxDriver_Close >+}; > > > /* >@@ -378,26 +395,6 @@ > return -ENOMEM; > } > >- /* >- * Initialize the file_operations structure. Because this code is always >- * compiled as a module, this is fine to do it here and not in a static >- * initializer. >- */ >- >- memset(&vmuser_fops, 0, sizeof vmuser_fops); >- vmuser_fops.owner = THIS_MODULE; >- vmuser_fops.poll = LinuxDriverPoll; >-#ifdef HAVE_UNLOCKED_IOCTL >- vmuser_fops.unlocked_ioctl = LinuxDriver_UnlockedIoctl; >-#else >- vmuser_fops.ioctl = LinuxDriver_Ioctl; >-#endif >-#ifdef HAVE_COMPAT_IOCTL >- vmuser_fops.compat_ioctl = LinuxDriver_UnlockedIoctl; >-#endif >- vmuser_fops.open = LinuxDriver_Open; >- vmuser_fops.release = LinuxDriver_Close; >- > sprintf(linuxState.deviceName, "vmci"); > linuxState.major = 10; > linuxState.misc.minor = MISC_DYNAMIC_MINOR;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 386721
:
289513
|
289515
| 289757 |
289759
|
295221