3 ms·
If you bother to set the permissions, I suggest to do it in a way that doesn't leave a time window during which it still is unprotected (note that non-priviledg
by pflanze 4y ago
If you bother to set the permissions, I suggest to do it in a way that doesn't leave a time window during which it still is unprotected (note that non-priviledged processes just need to open the file during that window; they can keep reading even after your chmod has been run). Also, not sure what the point of `-U clear` was, that's setting the uuid for the swap, better leave it at the default random one?
$ ( umask 077; dd if=/dev/zero of=/swapfile bs=1G count=250 status=progress )
$ mkswap /swapfile
$ swapon /swapfile