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/linux/VBoxPci-linux.c | |
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/linux/VBoxPci-linux.c')
-rw-r--r-- | src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c | 8 |
1 files changed, 8 insertions, 0 deletions
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, |