Cache pid of the remote process in the struct xucred. Do not bump XUCRED_VERSION as struct layout is not changed.
PR: 215202
Differential D20415
Linuxulator: complete LOCAL_PEERCRED support. dchagin on May 26 2019, 7:06 PM. Authored by Tags None Referenced Files
Subscribers
Details Cache pid of the remote process in the struct xucred. Do not bump XUCRED_VERSION as struct layout is not changed. PR: 215202
Diff Detail
Event TimelineComment Actions I assume you used a union in struct xucred because a pointer has a different size on different architectures? You could use something like this: pid_t cr_pid; But perhaps that's not really an improvement. Comment Actions sure
my variant is better for static struct xucred initialization |