Page MenuHomeFreeBSD

vmm: Be more consistent with the credential used for VM lookup
ClosedPublic

Authored by markj on Aug 27 2024, 12:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 6, 2:27 PM
Unknown Object (File)
Sun, Sep 6, 1:31 PM
Unknown Object (File)
Sun, Sep 6, 8:32 AM
Unknown Object (File)
Sat, Sep 5, 10:34 AM
Unknown Object (File)
Sat, Sep 5, 9:37 AM
Unknown Object (File)
Fri, Sep 4, 11:16 PM
Unknown Object (File)
Wed, Sep 2, 11:33 PM
Unknown Object (File)
Wed, Sep 2, 9:14 PM
Subscribers

Details

Summary

vmmdev_lookup() is used from sysctl context to find a VM by name.
There, a reference credential is already passed, so use that instead of
assuming that it's the same as curthread->td_ucred, even though that's
true today. No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable