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)
Wed, Oct 15, 4:12 AM
Unknown Object (File)
Thu, Oct 9, 9:20 PM
Unknown Object (File)
Wed, Oct 8, 5:32 PM
Unknown Object (File)
Thu, Oct 2, 1:11 PM
Unknown Object (File)
Wed, Oct 1, 12:47 PM
Unknown Object (File)
Wed, Oct 1, 9:53 AM
Unknown Object (File)
Tue, Sep 30, 10:07 PM
Unknown Object (File)
Sat, Sep 27, 7:59 AM
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