VirtualBox

Changeset 52701 in vbox for trunk


Ignore:
Timestamp:
Sep 11, 2014 1:40:22 PM (10 years ago)
Author:
vboxsync
Message:

Additions/VBoxGuest: allow root processes access to the back-door logger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r52618 r52701  
    25162516 * @param   pcbDataReturned     Where to store the amount of returned data. Can be NULL.
    25172517 */
    2518 static int VBoxGuestCommonIOCtl_Log(PVBOXGUESTDEVEXT pDevExt, const char *pch, size_t cbData, size_t *pcbDataReturned)
     2518static int VBoxGuestCommonIOCtl_Log(PVBOXGUESTDEVEXT pDevExt, const char *pch, size_t cbData, size_t *pcbDataReturned, bool fUserSession)
    25192519{
    25202520    NOREF(pch);
     
    25222522    if (pDevExt->fLoggingEnabled)
    25232523        RTLogBackdoorPrintf("%.*s", cbData, pch);
     2524    else if (!fUserSession)
     2525        LogRel(("%.*s", cbData, pch));
    25242526    else
    25252527        Log(("%.*s", cbData, pch));
     
    28412843    {
    28422844        CHECKRET_MIN_SIZE("LOG", 1);
    2843         rc = VBoxGuestCommonIOCtl_Log(pDevExt, (char *)pvData, cbData, pcbDataReturned);
     2845        rc = VBoxGuestCommonIOCtl_Log(pDevExt, (char *)pvData, cbData, pcbDataReturned, pSession->fUserSession);
    28442846    }
    28452847    else
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