Changeset 76444 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 24, 2018 3:58:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-netbsd.c
r76443 r76444 40 40 #include <sys/poll.h> 41 41 #include <sys/proc.h> 42 #include <sys/kauth.h> 42 43 #include <sys/stat.h> 43 44 #include <sys/selinfo.h> … … 646 647 int rc; 647 648 struct kauth_cred *pCred = pLwp->l_cred; 649 int fIsWheel; 648 650 uint32_t fRequestor = VMMDEV_REQUESTOR_USERMODE | VMMDEV_REQUESTOR_TRUST_NOT_GIVEN; 649 651 if (pCred && kauth_cred_geteuid(pCred) == 0) … … 652 654 fRequestor |= VMMDEV_REQUESTOR_USR_USER; 653 655 654 if (pCred && kauth_cred_ismember_gid(pCred, 0 ))656 if (pCred && kauth_cred_ismember_gid(pCred, 0, &fIsWheel) == 0 && fIsWheel) 655 657 fRequestor |= VMMDEV_REQUESTOR_GRP_WHEEL; 656 658 fRequestor |= VMMDEV_REQUESTOR_NO_USER_DEVICE; /** @todo implement /dev/vboxuser
Note:
See TracChangeset
for help on using the changeset viewer.