Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: VirtualBOX additions (again)



On Fri, Dec 21, 2018 at 09:17:13PM +0000, Chavdar Ivanov wrote:
>              struct kauth_cred *pCred = pLwp->l_cred;
>              uint32_t fRequestor = VMMDEV_REQUESTOR_USERMODE |
> VMMDEV_REQUESTOR_TRUST_NOT_GIVEN;
> -            if (pCred && kauth_cred_geteuid(pCred) == 0)
> +            if (pCred)

This is wrong.

> (no /usr/include/sys/kauth.h, no idea if this is right but seems to be working),

kauth.h is not installed for userland, it is in src/sys/sys/kauth.h
and you'll have to set proper include paths.


Martin


Home | Main Index | Thread Index | Old Index