From owner-freebsd-net@FreeBSD.ORG Sun Mar 6 11:36:09 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27AEC16A4CE for ; Sun, 6 Mar 2005 11:36:09 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB42C43D41 for ; Sun, 6 Mar 2005 11:36:07 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a102.otenet.gr [212.205.215.102]) j26BZo2T016004; Sun, 6 Mar 2005 13:35:51 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j26Ba2NZ072960; Sun, 6 Mar 2005 13:36:02 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j26Ba280072959; Sun, 6 Mar 2005 13:36:02 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 6 Mar 2005 13:36:02 +0200 From: Giorgos Keramidas To: Andreas Bachmann Message-ID: <20050306113602.GA72592@gothmog.gr> References: <1110107067.2060.26.camel@notebook.bachi.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1110107067.2060.26.camel@notebook.bachi.net> cc: freebsd-net@freebsd.org Subject: Re: static pid and uid for a socket? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 11:36:09 -0000 On 2005-03-06 12:04, Andreas Bachmann 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.