diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-03-26 19:21:20 +0000 |
|---|---|---|
| committer | <> | 2014-05-08 15:03:54 +0000 |
| commit | fb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch) | |
| tree | c2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/HostDrivers/VBoxPci | |
| parent | 58ed4748338f9466599adfc8a9171280ed99e23f (diff) | |
| download | VirtualBox-master.tar.gz | |
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
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, |
