Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 275337 Details for
Bug 369507
Bind mounts specified as read-only in fstab mount as read/write using sys-apps/openrc-0.8.2-r1 and lower
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to /etc/init.d/localmount to remount read-only bind-mounts
ro-bind-mount.patch (text/plain), 830 bytes, created by
Max Hacking
on 2011-05-31 13:34:45 UTC
(
hide
)
Description:
Patch to /etc/init.d/localmount to remount read-only bind-mounts
Filename:
MIME Type:
Creator:
Max Hacking
Created:
2011-05-31 13:34:45 UTC
Size:
830 bytes
patch
obsolete
>--- etc/init.d/localmount 2011-05-15 05:29:03.000000000 +0200 >+++ /etc/init.d/localmount 2011-05-31 15:08:00.000000000 +0200 >@@ -24,9 +24,26 @@ > no_netdev="-O no_netdev" > fi > ebegin "Mounting local filesystems" >- mount -at "$types" $no_netdev >+ mount -at "$types" $no_netdev >/dev/null > eend $? "Some local filesystem failed to mount" > >+ # Remount any read-only bind-mounts so that they actually become read-only! >+ for m in `awk '/^\// { >+ split($4,opts,","); >+ bm = ro = na = 0; >+ for (i in opts) >+ { >+ ro = ro || (opts[i] == "ro"); >+ bm = bm || ((opts[i] == "bind") || (opts[i] == "rbind")); >+ na = na || (opts[i] == "noauto"); >+ } >+ if (bm && ro && !na) >+ print $2; >+ }' /etc/fstab` >+ do >+ mount -o remount $m >+ done >+ > # Always return 0 - some local mounts may not be critical for boot > return 0 > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 369507
:
275337
|
275339