-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
static/writable-paths: set safer options for tmpfs mounts #122
base: master
Are you sure you want to change the base?
static/writable-paths: set safer options for tmpfs mounts #122
Conversation
@@ -16,10 +16,10 @@ | |||
# snap data | |||
/var/snap auto persistent transition none | |||
# generic | |||
/media none temporary none defaults | |||
/mnt none temporary none defaults | |||
/media none temporary none mode=1777,strictatime,nosuid,nodev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need mode=1777
for /mnt and /media ? Those are not really dirs that have the same semantic as /tmp, they are more dirs with a similar semantic as /run AIUI. Or is there soemthing I'm missing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this change, when I run stat
on /mnt
and /media
it actually shows mode 1777
already, so I think that is the default mode. This just shows that more explicitly. So we can remove it I guess, I do not have a strong opinion either way.
4a58c54
to
8b9ee68
Compare
I've removed the change for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, LGTM
Set safer options for mount points backed by tmpfs and writable by all users, so we make sure that nosuid,nodev are set. The options are the default ones recommended by systemd (see /usr/share/systemd/tmp.mount) and we were actually using them already for /tmp in the initramfs.
8b9ee68
to
8135c9a
Compare
Set safer options for mount points backed by tmpfs, so we make sure
that nosuid,nodev are set. The options are the default ones
recommended by systemd (see /usr/share/systemd/tmp.mount) and we were
actually using them already for /tmp in the initramfs.