FreeBSD Bugzilla – Bug 130583
[patch] emulators/open-vm-tools does not compile on 8-CURRENT
Last modified: 2009-03-03 23:30:03 UTC
The currently used suser(9) KPI was removed a while ago. The replacement is priv_check(9).
The "a_mode" member of struct vop_access_args has been renamed to "a_accmode".
Both of these issues stop the vmhgfs and vmblock FreeBSD kernel drivers from building as part of the port build on recent 8-CURRENT.
Fix: Attached patch renames struct vop_access_args member "a_mode" to "a_accmode", and updates suser(9) calls to priv_check(9). Privs checked for are a guess based on code comments and the contents of sys/sys/priv.h and should be reviewed to make sure I picked the correct ones to check for.
I've done no other validation than to check it compiles and the modules load correctly into the kernel. I don't use the functionality of either module as far as I'm aware so I can't vouch for the correctness of my changes.
It may also be possible to indirect through a compat layer to avoid the patch altogether... not sure as I haven't investigated this at all. Probably best to go with some sort of patch though to future proof the fix.
Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/emulators/open-vm-tools && make
(note the problem is also present with emulators/open-vm-tools-nox11)
Over to maintainer (via the GNATS Auto Assign Tool)
vmhgfs (and vmblock probably) also needs the attached patch on
Without the patch, the kernel crashes when vmhgfs is accessed.
I've tested it for vmhgfs on VMWare Player 2.5, but not for vmblock.
mbr 2009-03-03 23:26:15 UTC
FreeBSD ports repository
emulators/open-vm-tools Makefile distinfo pkg-plist
Upgrade the port to build 148847 from 2009.02.18.
Submitted by: lstewart
Reviewed by: KUROSAWA Takahiro <firstname.lastname@example.org>
Revision Changes Path
1.20 +13 -12 ports/emulators/open-vm-tools/Makefile
1.5 +3 -3 ports/emulators/open-vm-tools/distinfo
1.2 +0 -11 ports/emulators/open-vm-tools/files/optpatch-nox11 (dead)
1.1 +54 -0 ports/emulators/open-vm-tools/files/patch-freebsd-8 (new)
1.2 +14 -14 ports/emulators/open-vm-tools/files/patch-guestd-Makefile
1.2 +0 -58 ports/emulators/open-vm-tools/files/patch-hgfsmounter-Makefile (dead)
1.2 +0 -63 ports/emulators/open-vm-tools/files/patch-modules-Makefile (dead)
1.1 +24 -0 ports/emulators/open-vm-tools/files/patch-services-Makefile (new)
1.1 +26 -0 ports/emulators/open-vm-tools/files/patch-suspend-vm-default (new)
1.3 +0 -40 ports/emulators/open-vm-tools/files/patch-toolbox-Makefile (dead)
1.1 +35 -0 ports/emulators/open-vm-tools/files/patch-vmblock-fuse-Makefile (new)
1.1 +14 -0 ports/emulators/open-vm-tools/files/patch-vmblock-fuse-block.c (new)
1.1 +16 -0 ports/emulators/open-vm-tools/files/patch-vmblock-subr.c (new)
1.1 +15 -0 ports/emulators/open-vm-tools/files/patch-vmhgfs-state.c (new)
1.2 +0 -32 ports/emulators/open-vm-tools/files/patch-wiperPosix.c (dead)
1.16 +21 -0 ports/emulators/open-vm-tools/pkg-plist
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"
Committed, thanks !