Hello,

I am writing a client which uses gRPC to communicate remotely to another 
gRPC service but also locally receives requests using gRPC on a UNIX domain 
socket. Part of the request to the remote service is some information about 
the requesting process such as the uid and gid it is running as. Normally I 
would be able to get a ucred structure using SO_PEERCRED on the socket 
descriptor however I don't see a way to do that in the interfaces provided 
to Go. I can't rely on the process to provide that info in its request 
because there is no guarantee that it won't lie so the best way is to get 
this information from the kernel itself. Does anyone know how I might 
accomplish this? Would this require modifications to the core grpc 
libraries?

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b7136290-3139-466c-812d-1450e50758b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to