User: Password:
|
|
Subscribe / Log in / New account

Read-only bind mounts

Read-only bind mounts

Posted Aug 28, 2008 20:03 UTC (Thu) by john.at.satlantic (guest, #53644)
Parent article: Read-only bind mounts

Trouble on ScientificLinux 5.1 (newest kernel as of this writing)

mount -o remount,ro /home/new-mount-point/some-data

makes all of /home read-only.


(Log in to post comments)

Read-only bind mounts

Posted Aug 31, 2008 10:58 UTC (Sun) by MONK (guest, #53684) [Link]

I tried it on Ubuntu 8.10 and although in mount it said ro, I was still able to change files in the bind point :(

Read-only bind mounts

Posted Nov 6, 2009 14:49 UTC (Fri) by terryburton (subscriber, #26261) [Link]

It seems unfortunate that the situation still isn't remedied after 18 months so I've raised this with the maintainers of util-linux-ng...

"[security] mount: Read-only bind mount silent failure then misreporting options"

http://thread.gmane.org/gmane.linux.utilities.util-linux-...

Have fun,

Terry

http://www.terryburton.co.uk

Read-only bind mounts STILL BROKEN in mainline?

Posted Dec 7, 2011 21:03 UTC (Wed) by gvy (guest, #11981) [Link]

As of 2.6.39 and 3.0.8 at least:
# mount -o bind,ro /home /mnt/cdrom
mount: warning: /mnt/cdrom seems to be mounted read-write.
# _

OpenVZ 2.6.32 works fine though -- seems the fine folks over there did fix it.


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds