Skip to contentSkip to conversation

--bind -o suid/exec/...

mount Stephane Chazelas 1 participant 1 message Feb 9, 2010 2 messages not in the archive Util-Linux package

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
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