Util-Linux package development
 help / color / mirror / Atom feed
* Re: [mount] --bind -o suid/exec/...
       [not found] ` <20100209162305.GG6375@nb.net.home>
@ 2010-02-09 17:09   ` Stephane Chazelas
  0 siblings, 0 replies; only message in thread
From: Stephane Chazelas @ 2010-02-09 17:09 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux-ng

2010-02-09 17:23:05 +0100, Karel Zak:
[...]
> > mount --bind /here /there
> > mount -o remount,noexec /there
[...]
> >, 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-09 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <chaz20100209152559.GA3693@seebyte.com>
     [not found] ` <20100209162305.GG6375@nb.net.home>
2010-02-09 17:09   ` [mount] --bind -o suid/exec/ Stephane Chazelas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox