static pid and uid for a socket?

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Mar 6 03:36:09 PST 2005


On 2005-03-06 12:04, Andreas Bachmann <bachi at te-clan.ch> wrote:
> can a socket, which created by a user over a process (xfile.xf_uid,
> xfile.xf_pid), suddenly have another user or another process (maybee
> with setuid() or fork()) or does the socket clone?

AFAIK, this can only be done if the original process calls execve() on a
setuid binary and has not marked the socket descriptor as close-on-exec.



More information about the freebsd-net mailing list