VirtualBox

儲存庫 vbox 的更動 11865


忽略:
時間撮記:
2008-8-30 上午03:55:17 (16 年 以前)
作者:
vboxsync
訊息:

#3076: check in VBoxDrvLinuxCreate that the caller euid is root.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r11725 r11865  
    683683    Log(("VBoxDrvLinuxCreate: pFilp=%p pid=%d/%d %s\n", pFilp, RTProcSelf(), current->pid, current->comm));
    684684
     685#ifdef VBOX_WITH_HARDENING
     686    /*
     687     * Only root is allowed to access the device, enforce it!
     688     */
     689    if (current->euid != 0 /* root */ )
     690    {
     691        Log(("VBoxDrvLinuxCreate: euid=%d, expected 0 (root)\n", current->euid));
     692        return EPERM;
     693    }
     694#endif /* VBOX_WITH_HARDENING */
     695
    685696    /*
    686697     * Call common code for the rest.
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette