VirtualBox

Changeset 105016 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jun 25, 2024 10:28:21 AM (7 months ago)
Author:
vboxsync
Message:

doc/manual,include/VBox,Frontends/VBoxManage,HostServices/SharedFolders,
Main/{include,SharedFolder,Console,Machine,VirtualBox.xidl}: Add a
new attribute to ISharedFolder for specifying a symbolic link creation
policy to restrict the source pathname when creating symbolic links
within a guest. The symbolic link policies are represented by a new
enumeration of type SymlinkPolicy_T which includes values for no
restrictions ('any'), symlink sources only within the subtree of the
share ('subtree'), symlink sources as any relative path ('relative'),
and no symlinks allowed ('forbidden'). The symlink policy can only be
applied to permanent shared folders at this stage. bugref:10619

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r103085 r105016  
    50325032                        aName.c_str());
    50335033
     5034    SymlinkPolicy_T enmSymlinkPolicy = SymlinkPolicy_None;
    50345035    sharedFolder.createObject();
    50355036    hrc = sharedFolder->init(i_getMachine(),
     
    50395040                             !!aAutomount,
    50405041                             aAutoMountPoint,
    5041                              true /* fFailOnError */);
     5042                             true /* fFailOnError */,
     5043                             enmSymlinkPolicy);
    50425044    if (FAILED(hrc)) return hrc;
    50435045
     
    88188820                                     RT_BOOL(sf.fAutoMount),
    88198821                                     sf.strAutoMountPoint,
    8820                                      false /* fFailOnError */);
     8822                                     false /* fFailOnError */,
     8823                                     sf.enmSymlinkPolicy);
    88218824            if (FAILED(hrc)) return hrc;
    88228825            mHWData->mSharedFolders.push_back(sharedFolder);
     
    1019310196            sf.fAutoMount = !!pSF->i_isAutoMounted();
    1019410197            sf.strAutoMountPoint = pSF->i_getAutoMountPoint();
     10198            sf.enmSymlinkPolicy = pSF->i_getSymlinkPolicy();
    1019510199
    1019610200            data.llSharedFolders.push_back(sf);
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