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)
Mar 6 2025, 9:59 AM
Unknown Object (File)
Mar 6 2025, 5:42 AM
Unknown Object (File)
Feb 20 2025, 8:35 PM
Unknown Object (File)
Feb 20 2025, 7:52 PM
Unknown Object (File)
Feb 19 2025, 12:08 AM
Unknown Object (File)
Feb 8 2025, 12:13 AM
Unknown Object (File)
Jan 28 2025, 4:43 AM
Unknown Object (File)
Jan 26 2025, 12:24 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