Cache pid of the remote process in the struct xucred. Do not bump XUCRED_VERSION as struct layout is not changed.
PR: 215202
Paths
| Differential D20415 Authored by dchagin on May 26 2019, 7:06 PM.
Details Summary 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. This revision is now accepted and ready to land.May 27 2019, 1:07 PM2019-05-27 13:07:31 (UTC+0) Comment Actions
sure
my variant is better for static struct xucred initialization Closed by commit rS348419: Complete LOCAL_PEERCRED support. Cache pid of the remote process in the (authored by dchagin). · Explain WhyMay 30 2019, 2:24 PM2019-05-30 14:24:44 (UTC+0) This revision was automatically updated to reflect the committed changes. Herald added a reviewer: manpages. · View Herald TranscriptMay 30 2019, 2:24 PM2019-05-30 14:24:45 (UTC+0)
Revision Contents
Diff 58073 head/crypto/heimdal/lib/ipc/server.c
head/share/man/man4/unix.4
head/sys/compat/linux/linux_socket.c
head/sys/kern/kern_prot.c
|
probably commit the .Tn removal separately first?