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)
Tue, May 12, 1:24 PM
Unknown Object (File)
Tue, May 12, 10:52 AM
Unknown Object (File)
Mon, May 11, 10:02 PM
Unknown Object (File)
Thu, Apr 30, 4:23 PM
Unknown Object (File)
Thu, Apr 30, 4:16 PM
Unknown Object (File)
Thu, Apr 30, 2:32 AM
Unknown Object (File)
Thu, Apr 30, 2:32 AM
Unknown Object (File)
Thu, Apr 30, 2:31 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