diff options
Diffstat (limited to 'src/VBox/HostDrivers/VBoxPci')
-rw-r--r-- | src/VBox/HostDrivers/VBoxPci/VBoxPci.c | 2 | ||||
-rw-r--r-- | src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h | 2 | ||||
-rw-r--r-- | src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c | 8 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/VBox/HostDrivers/VBoxPci/VBoxPci.c b/src/VBox/HostDrivers/VBoxPci/VBoxPci.c index 97f405b6..6149f97f 100644 --- a/src/VBox/HostDrivers/VBoxPci/VBoxPci.c +++ b/src/VBox/HostDrivers/VBoxPci/VBoxPci.c @@ -4,7 +4,7 @@ */ /* - * Copyright (C) 2011 Oracle Corporation + * Copyright (C) 2011-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h b/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h index f5f33b86..6b435d60 100644 --- a/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h +++ b/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h @@ -4,7 +4,7 @@ */ /* - * Copyright (C) 2011 Oracle Corporation + * Copyright (C) 2011-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; diff --git a/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c b/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c index b8019f7f..f9df872a 100644 --- a/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c +++ b/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c @@ -429,7 +429,11 @@ int vboxPciOsDevDetachHostDriver(PVBOXRAWPCIINS pIns) if (!pNewCreds) goto done; +# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0) + pNewCreds->fsuid = GLOBAL_ROOT_UID; +# else pNewCreds->fsuid = 0; +# endif pOldCreds = override_creds(pNewCreds); #endif @@ -539,7 +543,11 @@ int vboxPciOsDevReattachHostDriver(PVBOXRAWPCIINS pIns) if (!pNewCreds) goto done; +# if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0) + pNewCreds->fsuid = GLOBAL_ROOT_UID; +# else pNewCreds->fsuid = 0; +# endif pOldCreds = override_creds(pNewCreds); #endif RTStrPrintf(szFileBuf, cMaxBuf, |