Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262756AbUDOU1E (ORCPT ); Thu, 15 Apr 2004 16:27:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262175AbUDOUZr (ORCPT ); Thu, 15 Apr 2004 16:25:47 -0400 Received: from dbl.q-ag.de ([213.172.117.3]:56785 "EHLO dbl.q-ag.de") by vger.kernel.org with ESMTP id S262758AbUDOUY0 (ORCPT ); Thu, 15 Apr 2004 16:24:26 -0400 Message-ID: <407EEF6C.6030408@colorfullife.com> Date: Thu, 15 Apr 2004 22:24:12 +0200 From: Manfred Spraul User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.4.1) Gecko/20031114 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Wright CC: Andrew Morton , Jakub Jelinek , Ulrich Drepper , Linux Kernel Subject: Re: [PATCH] mq_open() honor leading slash References: <20040415113951.G21045@build.pdx.osdl.net> In-Reply-To: <20040415113951.G21045@build.pdx.osdl.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 678 Lines: 20 Chris Wright wrote: >Patch below simply eats all leading slashes before passing name to >lookup_one_len() in mq_open() and mq_unlink(). > > Why should we do that in kernel space? The kernel interface is "no slash at all". User space can add a SuS compatible layer on top of the kernel interface (i.e. fail with -EINVAL if the first character is not a /, then skip the slash and pass "name+1" to sys_mq_open()). -- Manfred - 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/