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/solaris/SUPDrv-solaris.c

    r10263 r10377  
    420420     * Create a new session.
    421421     */
    422     rc = supdrvCreateSession(&g_DevExt, &pSession);
     422    rc = supdrvCreateSession(&g_DevExt, true /* fUser */, &pSession);
    423423    if (RT_SUCCESS(rc))
    424424    {
     425        pSession->Uid = crgetuid(pCred);
     426        pSession->Gid = crgetgid(pCred);
     427
    425428        pState->pSession = pSession;
    426429        *pDev = makedevice(getmajor(*pDev), iOpenInstance);
     
    440443     * in VBoxDrvSolarisIOCtlSlow() while calling supdrvIOCtl()
    441444     */
    442     rc = supdrvCreateSession(&g_DevExt, &pSession);
     445    rc = supdrvCreateSession(&g_DevExt, true /* fUser */, &pSession);
    443446    if (RT_SUCCESS(rc))
    444447    {
     
    446449        unsigned        iHash;
    447450
    448         pSession->Uid       = crgetuid(pCred);
    449         pSession->Gid       = crgetgid(pCred);
    450         pSession->Process   = RTProcSelf();
    451         pSession->R0Process = RTR0ProcHandleSelf();
     451        pSession->Uid = crgetuid(pCred);
     452        pSession->Gid = crgetgid(pCred);
    452453
    453454        /*
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