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, Jan 28, 4:43 AM
Unknown Object (File)
Sun, Jan 26, 12:24 PM
Unknown Object (File)
Mon, Jan 20, 4:28 AM
Unknown Object (File)
Dec 26 2024, 4:37 PM
Unknown Object (File)
Dec 2 2024, 6:55 AM
Unknown Object (File)
Oct 19 2024, 1:30 PM
Unknown Object (File)
Oct 19 2024, 1:30 PM
Unknown Object (File)
Oct 19 2024, 1:30 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