Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 251335 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +4 lines)
Line  Link Here
0
-- a/vboxdrv/linux/SUPDrv-linux.c 2008-12-29 16:15:53.000000000 +0000
0
++ b/vboxdrv/linux/SUPDrv-linux.c        2009-01-04 00:02:20.346070537 +0000
Lines 703-709 Link Here
703
    /*
703
    /*
704
     * Only root is allowed to access the device, enforce it!
704
     * Only root is allowed to access the device, enforce it!
705
     */
705
     */
706
    if (current->euid != 0 /* root */ )
706
    if (current->cred->euid != 0 /* root */ )
707
    {
707
    {
708
        Log(("VBoxDrvLinuxCreate: euid=%d, expected 0 (root)\n", current->euid));
708
        Log(("VBoxDrvLinuxCreate: euid=%d, expected 0 (root)\n", current->euid));
709
        return -EPERM;
709
        return -EPERM;
Lines 716-723 Link Here
716
    rc = supdrvCreateSession(&g_DevExt, true /* fUser */, (PSUPDRVSESSION *)&pSession);
716
    rc = supdrvCreateSession(&g_DevExt, true /* fUser */, (PSUPDRVSESSION *)&pSession);
717
    if (!rc)
717
    if (!rc)
718
    {
718
    {
719
        pSession->Uid = current->uid;
719
        pSession->Uid = current->cred->uid;
720
        pSession->Gid = current->gid;
720
        pSession->Gid = current->cred->gid;
721
    }
721
    }
722
    pFilp->private_data = pSession; 
722
    pFilp->private_data = pSession; 

Return to bug 251335