From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266717AbUHIQfr (ORCPT ); Mon, 9 Aug 2004 12:35:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266715AbUHIQfr (ORCPT ); Mon, 9 Aug 2004 12:35:47 -0400 Received: from the-village.bc.nu ([81.2.110.252]:43977 "EHLO localhost.localdomain") by vger.kernel.org with ESMTP id S266726AbUHIQfp (ORCPT ); Mon, 9 Aug 2004 12:35:45 -0400 Subject: Re: dynamic /dev security hole? From: Alan Cox To: Eric Lammerts Cc: Marc Ballarin , Greg KH , albert@users.sourceforge.net, Linux Kernel Mailing List In-Reply-To: References: <20040808162115.GA7597@kroah.com> <1091969260.5759.125.camel@cube> <20040808175834.59758fc0.Ballarin.Marc@gmx.de> <20040808162115.GA7597@kroah.com> <20040809000727.1eaf917b.Ballarin.Marc@gmx.de> <1092062974.14153.26.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1092065586.14144.31.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 09 Aug 2004 16:33:08 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Llu, 2004-08-09 at 17:17, Eric Lammerts wrote: > It's only meant as a fix for the hardlink trick, not against the open > file descriptor trick. About the latter, if someone still has the > device opened, how can it go away? And if it doesn't go away, how can > udev create a new node with the same major/minor? User closes device I have linked copy (not open) Device unloaded I open the linked copy This makes new device load for me. I'm just trying to point out that the order of operations matters here because the old nodes must all be dead before the new device. Its even worse for less dynamic numbering. Alan