mountall is lying about /run's noexec
Bug #1152744 reported by
Kees Cook
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Marc Deslauriers | ||
Quantal |
Fix Released
|
Undecided
|
Marc Deslauriers | ||
Saucy |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
It looks like /run got mounted without noexec and the mtab write lies about it:
$ grep -m1 /run /etc/mtab /proc/mounts
/etc/mtab:tmpfs /run tmpfs rw,noexec,
/proc/mounts:tmpfs /run tmpfs rw,nosuid,
For completeness, /run should _actually_ be mounted noexec, even if it's root:root 0755.
information type: | Private Security → Public Security |
Changed in mountall (Ubuntu): | |
status: | New → Confirmed |
Changed in initramfs-tools (Ubuntu Saucy): | |
status: | New → Fix Released |
Changed in initramfs-tools (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in initramfs-tools (Ubuntu Quantal): | |
status: | New → Confirmed |
Changed in initramfs-tools (Ubuntu Precise): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
Changed in initramfs-tools (Ubuntu Quantal): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
To post a comment you must log in.
This is a result of /run being mounted from the initramfs. mountall doesn't attempt to remount any filesystems that are already mounted, it just records them in /etc/mtab with 'mount -f'. This has previously been reported as bug #1039887.
I think having the wrong default mount options for /run is an initramfs-tools bug, rather than a mountall bug; initramfs-tools should get the mount options right without us having to remount anything.