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, Jul 21, 12:44 PM
Unknown Object (File)
Tue, Jul 21, 10:27 AM
Unknown Object (File)
Mon, Jul 20, 5:22 AM
Unknown Object (File)
Sat, Jul 18, 4:45 PM
Unknown Object (File)
Thu, Jul 16, 3:37 PM
Unknown Object (File)
Sun, Jul 12, 3:45 AM
Unknown Object (File)
Tue, Jul 7, 2:46 AM
Unknown Object (File)
Jun 18 2026, 10:36 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