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

Re: RFC: [PATCH] SCM_CREDS support 1(2)



Svante Signell, le Wed 16 Oct 2013 11:26:29 +0200, a écrit :
> > All of them. Everything that is provided in cmsgcred is supposed to have
> > been checked by the operating system as being correct.
> 
> How to handle case where not all ancillary data is sent, e.g. groups
> missing?

Well, you can still fill them as long as there is room for it.

>    By BSD
>    convention, this is included only when a sender on a AF_LOCAL socket
>    sends cmsg data of this type and size; the sender's structure is
>    ignored, and the system fills in the various IDs of the sender
> process.  */
> 
> Should we follow the BSD convention and completely ignore sent ancillary
> data as kFreeBSD does?

I guess so.

Samuel


Reply to: