tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding sc_pid to SCM_CREDS



On Tue, 29 Mar 2016, Roy Marples wrote:

> Attached is a patch which adds sc_pid to struct sockcred and correctly
> fills it out. The old sockcred structure is available as osockcred in
> compat/sys/socket.h and guarded by COMPAT_70.
> 
> Everything seems to work ok with old binaries, but would appreciate some
> extra eyes on the compat code or any suggestion how it could be done better.

there seems to be some variation in the naming scheme -- eg osockcred, 
SOCKOCREDSIZE, LOCAL_OCREDS, UNP_WANTOCRED 

should all this rather be styled cred70 if it is COMPAT_70 ?

iain


Home | Main Index | Thread Index | Old Index