VirtualBox

Ignore:
Timestamp:
Jul 8, 2008 4:26:13 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33025
Message:

Implemented the IDC methods. Moved the setting of the R0Process and Process SUPDRVSESSION members to SUPDrv.c, and made SUPDrv.c provide default initialization of the Uid and Gid members.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c

    r10263 r10377  
    301301     * Create a new session.
    302302     */
    303     rc = supdrvCreateSession(&g_VBoxDrvFreeBSDDevExt, &pSession);
     303    rc = supdrvCreateSession(&g_VBoxDrvFreeBSDDevExt, true /* fUser */, &pSession);
    304304    if (RT_SUCCESS(rc))
    305305    {
    306         pSession->Uid = 0;
    307         pSession->Gid = 0;
    308         pSession->Process = RTProcSelf();
    309         pSession->R0Process = RTR0ProcHandleSelf();
     306        /** @todo get (e)uid and (e)gid.
     307        pSession->Uid = stuff;
     308        pSession->Gid = stuff; */
    310309        if (ASMAtomicCmpXchgPtr(&pDev->si_drv1, pSession, (void *)0x42))
    311310            return 0;
Note: See TracChangeset for help on using the changeset viewer.

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