VirtualBox

Changeset 70828 in vbox


Ignore:
Timestamp:
Jan 31, 2018 12:59:34 PM (7 years ago)
Author:
vboxsync
Message:

Guest Properties: finer control of read-only-guest range.
bugref:9047: Clean up Linux guest vboxuser device
In r120474/public r70727 we made the whole /VirtualBox/GuestAdd/ Guest
Property range read-only to guests; some of those are used by the guest to
pass back information though, so split up the range to only include certain
subranges.

Location:
trunk/src/VBox/HostServices/GuestProperties
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestProperties/service.cpp

    r70727 r70828  
    276276    bool checkHostReserved(const char *pszName)
    277277    {
    278         if (RTStrStartsWith(pszName, "/VirtualBox/GuestAdd/"))
     278        if (RTStrStartsWith(pszName, "/VirtualBox/GuestAdd/VBoxService/"))
     279            return true;
     280        if (RTStrStartsWith(pszName, "/VirtualBox/GuestAdd/PAM/"))
     281            return true;
     282        if (RTStrStartsWith(pszName, "/VirtualBox/GuestAdd/Greeter/"))
     283            return true;
     284        if (RTStrStartsWith(pszName, "/VirtualBox/GuestAdd/SharedFolders/"))
    279285            return true;
    280286        if (RTStrStartsWith(pszName, "/VirtualBox/HostInfo/"))
  • trunk/src/VBox/HostServices/GuestProperties/testcase/tstGuestPropSvc.cpp

    r70727 r70828  
    465465        { "Green", "gone out...", "", true, false, false },
    466466        { "/VirtualBox/GuestAdd/SharedFolders/MountDir", "test", "", false, true, false },
     467        { "/VirtualBox/GuestAdd/SomethingElse", "test", "", false, true, true },
    467468        { "/VirtualBox/HostInfo/VRDP/Client/1/Name", "test", "", false, false, false },
    468469        { "/VirtualBox/GuestAdd/SharedFolders/MountDir", "test", "", true, true, true },
     
    666667    { "Green\0Go!\0READONLY", sizeof("Green\0Go!\0READONLY") },
    667668    { "Blue\0What on earth...?\0", sizeof("Blue\0What on earth...?\0") },
     669    { "/VirtualBox/GuestAdd/SomethingElse\0test\0",
     670      sizeof("/VirtualBox/GuestAdd/SomethingElse\0test\0") },
    668671    { "/VirtualBox/GuestAdd/SharedFolders/MountDir\0test\0RDONLYGUEST",
    669672      sizeof("/VirtualBox/GuestAdd/SharedFolders/MountDir\0test\0RDONLYGUEST") },
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