--bind -o suid/exec/...
2010-02-09 17:23:05 +0100, Karel Zak:
[...]
Quoted 2 lines
Quoted 2 lines
mount --bind /here /there
mount -o remount,noexec /there
[...]
Quoted 7 lines
Quoted 4 lines
, 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.
[...]
Thanks Karel,
but what about changing mount(8) so that it does two mount(2)s upon --bind -o?
One thing I've not mentionned is that it makes it quite awkward to add it in /etc/fstab.
/here /there none bind 0 0
there-remount /there none remount,noexec 0 0
works with mount -a but not with Ubuntu's mountall(8) for instance.
Cheers,
Stephane