Changeset 16352 in vbox for trunk/src/VBox/HostDrivers/Support/darwin
- Timestamp:
- Jan 28, 2009 11:50:04 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42192
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r15350 r16352 65 65 #include <sys/malloc.h> 66 66 #include <sys/proc.h> 67 #include <sys/kauth.h> 67 68 #include <IOKit/IOService.h> 68 69 #include <IOKit/IOUserclient.h> … … 362 363 int rc = VINF_SUCCESS; 363 364 PSUPDRVSESSION pSession = NULL; 364 struct ucred *pCred = proc_ucred(pProcess);365 kauth_cred_t pCred = kauth_cred_proc_ref(pProcess); 365 366 if (pCred) 366 367 { 367 RTUID Uid = pCred->cr_ruid;368 RTUID Uid = pCred->cr_ruid; 368 369 RTGID Gid = pCred->cr_rgid; 369 370 RTPROCESS Process = RTProcSelf(); … … 393 394 394 395 RTSpinlockReleaseNoInts(g_Spinlock, &Tmp); 396 kauth_cred_unref(&pCred); 395 397 } 396 398 else … … 452 454 if (!pSession) 453 455 { 454 OSDBGPRINT(("VBoxDrvDarwinIOCtl: WHAT?!? pSession == NULL! This must be a mistake... pid=%d iCmd=%# x\n",456 OSDBGPRINT(("VBoxDrvDarwinIOCtl: WHAT?!? pSession == NULL! This must be a mistake... pid=%d iCmd=%#lx\n", 455 457 (int)Process, iCmd)); 456 458 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.