-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
mount /tmp /var/tmp /dev/shm with nodev nosuid #5329
Comments
Additionally, on Debian, neither Anyway, |
Can't we use bind mount? Anything speaking against that? security-misc (#1885) runs We could use something like this...
related forum discussion: |
No, bind mounts can't change change options. |
If I look at
sudo mount | grep /tmp
I can see the new mount and changed mount options.
Also if I use noexec on it, after doing this I can no longer use noexec.
Seems functional.
|
Are you sure you didn't have /tmp as a separate mount (partition or whatever) in the first place?
|
Marek Marczykowski-Górecki:
Are you sure you didn't have /tmp as a separate mount (partition or whatever) in the first place?
Yes. Using default Qubes /etc/fstab. Works for me. Debian 10 based DispVM.
cat /etc/fstab | grep tmp
tmpfs /dev/shm tmpfs defaults,size=1G
0 0
user@disp4901:~$ mount | grep /tmp
user@disp4901:~$ sudo mount -o nosuid,nodev --bind /tmp /tmp
user@disp4901:~$ mount | grep /tmp
/dev/xvda3 on /tmp type ext4 (rw,nosuid,nodev,noatime,discard)
|
security-misc (#1885) now has a dracut module that makes maximum use of all the recommended mount hardening options. It works in Kicksecure and Non-Qubes-Whonix.
Not in the stable repository yet at time of writing. Also opt-in. Has various settings where to (not) enable the various mount options. Documented here: |
These folders
are user writable.
Similar to
Quote Joanna (founder of Qubes OS):
Quote solar:
Therefore I concluded:
SUID has to go away.
At least user (speak: possibly malware) created SUID should be prevented form being easily executed.
Getting rid of SUID binaries which are installed by default is worthwhile too but less trivial. Therefore out of scope for this ticket.
The text was updated successfully, but these errors were encountered: