From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com ([74.125.82.43]:35680 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbcCTSG3 convert rfc822-to-8bit (ORCPT ); Sun, 20 Mar 2016 14:06:29 -0400 Received: by mail-wm0-f43.google.com with SMTP id l68so85259277wml.0 for ; Sun, 20 Mar 2016 11:06:29 -0700 (PDT) Date: Sun, 20 Mar 2016 19:06:25 +0100 From: Jordi Pujol Palomer To: Al Viro Cc: Linux-Fsdevel Subject: Re: [PATCH] fs/namei.c: Hard link and rename should check same device instead of same mount Message-ID: <20160320190625.5e4ef31f@localdomain> In-Reply-To: <20160316142516.GK17997@ZenIV.linux.org.uk> References: <20160316140514.778db799@localdomain> <20160316142516.GK17997@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-fsdevel-owner@vger.kernel.org List-ID: El Wed, 16 Mar 2016 14:25:16 +0000 Al Viro escrigué: > NAK. This is absolutely deliberate; moreover, mount --bind $DIR $DIR > is often used just to set such a boundary. It means that the way I have proposed may work also ? Therefore we can develop a new option for binding to let the superuser choose what is needed for every mount-bind, example: mount --bind -o boundary $DIR $DIR mount --bind -o noboundary $DIR1 $DIR2 and allow remount also, mount -o remount,boundary $DIR mount -o remount,noboundary $DIR That seems feasible, Jordi Pujol i Palomer Enginyer Tècnic Industrial