Ulrich Drepper wrote: > Steve Grubb wrote: >> + uptr->uid = getuid(); >> + uptr->gid = getgid(); >> + uptr->pid = getpid(); > > You don't have to do that. The kernel will fill in the fields. If this > would not happen then all this wouldn't add any security.
Correction, when using credentials this way you have to fill it out. I was mixing things out. I've already told Tim Waugh that there is an easier way: just use getsockopt() on the receiver side, no changes to the sender side. *Then* you have nothing to fill out on the sender side, this is what I was thinking about. The other points are nevertheless valid, though. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
signature.asc
Description: OpenPGP digital signature
-- redhat-lspp mailing list [email protected] https://www.redhat.com/mailman/listinfo/redhat-lspp
