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
F154232303: D46447.id142574.diff
Mon, Apr 27, 7:31 AM
F154213094: D46447.id142475.diff
Mon, Apr 27, 4:16 AM
Unknown Object (File)
Sat, Apr 25, 5:09 PM
Unknown Object (File)
Fri, Apr 24, 4:20 AM
Unknown Object (File)
Thu, Apr 9, 4:19 AM
Unknown Object (File)
Feb 22 2026, 7:41 AM
Unknown Object (File)
Dec 12 2025, 4:45 AM
Unknown Object (File)
Nov 27 2025, 8:20 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59191
Build 56078: arc lint + arc unit