Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 18 Apr 2001 17:51:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 18 Apr 2001 17:51:19 -0400 Received: from leibniz.math.psu.edu ([146.186.130.2]:41715 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Wed, 18 Apr 2001 17:51:10 -0400 Date: Wed, 18 Apr 2001 17:51:08 -0400 (EDT) From: Alexander Viro To: Erik Mouw cc: Linux kernel mailing list Subject: Re: [PATCH] proc_mknod() should check the mode parameter In-Reply-To: <20010418222826.N6985@arthur.ubicom.tudelft.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Apr 2001, Erik Mouw wrote: > Hi all, > > While documenting the procfs interface (more of that later), I came > across proc_mknod() which is supposed to be used to create devices in > the procfs. IMHO it should therefore check if the mode parameter > contains S_IFBLK or S_IFCHR. Why? All callers of proc_mknod() are in the kernel and they should know better. I could understand if (....) BUG(); but silently doing nothing is really odd. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/