VirtualBox

Ignore:
Timestamp:
Jun 18, 2024 11:14:14 AM (8 months ago)
Author:
vboxsync
Message:

Additions/solaris/vboxfs_mount,Additions/VBoxService/VBoxServiceAutoMount:
The Solaris mount(2) system call limits the size of the mount options
buffer to MAX_MNTOPT_STR from <sys/mount.h> (currently 1024). Passing a
buffer size larger than this results in a failure with mount(2)
returning EINVAL which in this case prevents users from being able to
mount shared folders by hand. Undo a regression introduced in r158032.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_mount.c

    r100317 r104954  
    4747#include <sys/mount.h>
    4848
    49 #include <iprt/param.h> /* For PAGE_SIZE */
    50 
    5149#include "vboxfs.h"
    5250
     
    5553*   Global Variables                                                                                                             *
    5654*********************************************************************************************************************************/
    57 static char g_achOptBuf[PAGE_SIZE] = { '\0', };
     55static char g_achOptBuf[MAX_MNTOPT_STR] = { '\0', };
    5856static const int g_RetErr = 33;
    5957static const int g_RetMagic = 2;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette