VirtualBox

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

Additions/VBoxGuest: add a flag in the session structure to differentiate whether a process opened the user or the main device node (Linux guests only).

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r52681 r52700  
    706706    rc = VBoxGuestCreateUserSession(&g_DevExt, &pSession);
    707707    if (RT_SUCCESS(rc))
     708    {
    708709        pFilp->private_data = pSession;
     710        if (MINOR(pInode->i_rdev) == g_MiscDeviceUser.minor)
     711            pSession->fUserSession = true;
     712    }
    709713
    710714    Log(("vboxguestLinuxOpen: g_DevExt=%p pSession=%p rc=%d/%d (pid=%d/%d %s)\n",
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r51224 r52700  
    252252     * at once. */
    253253    bool volatile               fPendingCancelWaitEvents;
     254    /** Does this session belong to a root process or a user one? */
     255    bool                        fUserSession;
    254256} VBOXGUESTSESSION;
    255257
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