systemd mounts /run without noexec
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| initramfs-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
| systemd (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Bug Description
initramfs-tools in Bionic+, when mounting the filesystem, mounts /run with noexec
Cloud images run without initramfs and rely on systemd for the mounts. systemd, however, mounts /run without noexec. Snip from mount-setup.c (either in src/core/
```
#if ENABLE_SMACK
{ "tmpfs", "/run", "tmpfs", "mode=755,
#endif
{ "tmpfs", "/run", "tmpfs", "mode=755" TMPFS_LIMITS_RUN, MS_NOSUID|
NULL, MNT_FATAL|
```
Originally raised in an askubuntu forum:
https:/
CPC hasn't received word from any partners yet, but it does constitute a possible regression from how the system was mounted in Bionic and Focal before moving to optimized boots in 2020/2021.
| tags: | removed: foundations-todo |

The initramfs-tools behavior is longstanding and deliberate; the systemd behavior is the buggy deviation.