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)
Thu, Aug 13, 1:25 AM
Unknown Object (File)
Sat, Aug 8, 2:12 AM
Unknown Object (File)
Tue, Aug 4, 9:21 AM
Unknown Object (File)
Tue, Aug 4, 4:35 AM
Unknown Object (File)
Mon, Aug 3, 7:40 AM
Unknown Object (File)
Sat, Jul 25, 1:44 PM
Unknown Object (File)
Wed, Jul 22, 6:52 PM
Unknown Object (File)
Tue, Jul 21, 12:44 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