FreeBSD Bugzilla – Attachment 92827 Details for
Bug 130583
[patch] emulators/open-vm-tools does not compile on 8-CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.38 KB, created by
Lawrence Stewart
on 2009-01-15 12:30:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Lawrence Stewart
Created:
2009-01-15 12:30:04 UTC
Size:
1.38 KB
patch
obsolete
>--- modules/freebsd/vmhgfs/vfsops.c.orig 2009-01-15 22:29:18.000000000 +1100 >+++ modules/freebsd/vmhgfs/vfsops.c 2009-01-15 22:29:43.000000000 +1100 >@@ -139,7 +139,7 @@ > * Since Hgfs requires the caller to be root, only allow mount attempts made > * by the superuser. > */ >- if ((ret = suser(td)) != 0) { >+ if ((ret = priv_check(td, PRIV_VFS_MOUNT)) != 0) { > return ret; > } > >--- modules/freebsd/vmhgfs/vnops.c.orig 2009-01-15 22:28:42.000000000 +1100 >+++ modules/freebsd/vmhgfs/vnops.c 2009-01-15 22:28:53.000000000 +1100 >@@ -352,7 +352,7 @@ > */ > { > struct vnode *vp = ap->a_vp; >- int mode = ap->a_mode; >+ int mode = ap->a_accmode; > > return HgfsAccessInt(vp, mode); > } >--- modules/freebsd/vmblock/vnops.c.orig 2009-01-15 22:29:59.000000000 +1100 >+++ modules/freebsd/vmblock/vnops.c 2009-01-15 22:30:29.000000000 +1100 >@@ -723,7 +723,7 @@ > * NB: Allowing only the superuser to open this directory breaks > * readdir() of the filesystem root for non-privileged users. > */ >- if ((retval = suser(ap->a_td)) == 0) { >+ if ((retval = priv_check(ap->a_td, PRIV_VFS_GETFH)) == 0) { > #if __FreeBSD_version >= 700000 > fp = ap->a_fp; > #else >@@ -1007,7 +1007,7 @@ > */ > { > struct vnode *vp = ap->a_vp; >- mode_t mode = ap->a_mode; >+ mode_t mode = ap->a_accmode; > > /* > * Disallow write attempts on read-only layers; unless the file is a
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 130583
: 92827 |
92828