tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Remote pid with SOCK_DGRAM local socket
>>> That race condition exists for any method of passing PID
>>> information.
>> Right, I now have the reason why it did not get in-tree: it seems to
>> be a can of worms :-)
> Would this still matter for a service such as syslogd?
IMO, no: syslog is the one example I've thought or heard of so far
where the race involved in passing the PID does not matter.
> How about the UID?
Then you can just use LOCAL_CREDS and SCM_CREDS and you don't need any
patches at all. (There's also effectively no race, because, as someone
pointed out upthread, UIDs don't routinely go invalid - and, often, get
reused - the way PIDs do.)
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index