Re: [mount] --bind -o suid/exec/...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 09, 2010 at 03:25:59PM +0000, Stephane Chazelas wrote:
> Hiya,
> 
> [context: util-linux 2.16-1ubuntu5 on Ubuntu 9.10, 2.6.31-17-generic]
> 
> I can see mount(8) states:
> 
>                 Note that the filesystem mount options will
> 		remain the same as those on the original mount
> 		point, and cannot be changed by passing the -o
> 		option along with --bind/--rbind.
> 		
> 
> However, one can do for instance:
> 
> mount --bind /here /there
> mount -o remount,noexec /there
> 
> And that works (without affecting /here).
> 
> Maybe that would be worth documenting

 done:

        commit 1f06c70d9cfc4c5cdfc0e58758cda13e58e66c26
        Author: Karel Zak <kzak@xxxxxxxxxx>
        Date:   Wed Nov 18 16:11:01 2009 +0100

            mount: add a note about bind-dir remounts

>, or better, "mount" could
> be changed so that one can do it in a single step with:
> 
> mount --bind -o noexec /here /there

 this is unsupported by kernel, the "remount" and "bind" are two
 different operations.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux