VirtualBox

Changeset 84607 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
May 29, 2020 10:44:19 AM (5 years ago)
Author:
vboxsync
Message:

bugref:9637. using elevated priviliges only during drm ioctl call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-drm.cpp

    r84593 r84607  
    106106static void drmConnect(struct DRMCONTEXT *pContext)
    107107{
    108     uid_t guid = getuid();
    109     if (setreuid(0, 0) == -1)
    110     {
    111         perror("setuid failed drm device open.");
    112     }
    113108    unsigned i;
    114109    RTFILE hDevice;
     
    150145    }
    151146    pContext->hDevice = hDevice;
    152     setreuid(guid, 0);
    153147}
    154148
     
    171165    if (setreuid(0, 0) == -1)
    172166    {
    173         perror("setuid failed drm device open.");
    174     }
    175 
     167        perror("setreuid failed during drm ioctl.");
     168    }
    176169    int rc;
    177170    struct DRMVMWUPDATELAYOUT ioctlLayout;
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