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)
Wed, Nov 5, 1:30 AM
Unknown Object (File)
Tue, Nov 4, 10:03 AM
Unknown Object (File)
Tue, Nov 4, 2:50 AM
Unknown Object (File)
Mon, Nov 3, 10:26 PM
Unknown Object (File)
Mon, Nov 3, 10:26 PM
Unknown Object (File)
Mon, Nov 3, 10:26 PM
Unknown Object (File)
Mon, Nov 3, 6:44 PM
Unknown Object (File)
Mon, Nov 3, 9:06 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