Date: Sat, 11 Feb 2017 10:48:18 +0100 From: Roland Smith <rsmith@xs4all.nl> To: byrnejb@harte-lyne.ca Cc: FreeBSD-questions@freebsd.org Subject: Re: hardening /tmp Message-ID: <20170211094818.GA70716@slackbox.erewhon.home> In-Reply-To: <687643e26aeb858b3b5d9f5693829360.squirrel@webmail.harte-lyne.ca> References: <687643e26aeb858b3b5d9f5693829360.squirrel@webmail.harte-lyne.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--ibTvN161/egqYuK8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 08, 2017 at 10:22:48AM -0500, James B. Byrne via freebsd-questi= ons wrote: > How do most people handle hardening /tmp and /var/tmp on FreeBSD? I > can get rid of /tmp from the file system and then simply mount it as a > tmpfs in /etc/fstab. >=20 > tmpfs /tmp tmpfs rw,nosuid,noexec,mode=3D01777 0 0 >=20 > However, /var/tmp is supposed to survive across reboots so how is this > handled? You cannot have noexec set on /tmp if you want to run =E2=80=9Cmake install= world=E2=80=9D! You could make a separate partition/dataset for /var/tmp and mount that as noexec/nosuid. If you *really* want to harden your server, you should probably increase the kern.securelevel sysctl. See security(7). Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0) --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEV1MzJBZhsP6Nk/ztQPbV3KOKM+AFAlie3eIACgkQQPbV3KOK M+A+VhAAhJ3GF7WTrTAKvgj9DFbCJg7+f5zfReq9c9P1tEXIO77ZeZFjqxVWW4ZU w4IQBW+SGSVfGPATRcvabDNU9uvKDvDbtwWj3/3huc/p1h/V+vjBApReChbls9BR X601WQf0nZjEd1tkH5U8GVUTPCzyg1RtEEAl/8g6Z9jgRczyk1swa2tqvbxW7by/ 24w1ovakDFX1Vg28a+fGBcIieqjyiVy6TzJ4oQ4ri7NqqOV7XjYpUPVs2KoNGfXO 9pykSURabgB5hP1RTqmVIqFfHtIlGD/4k4jDwlVD01UhJ0t5LLvmWQypB6M0CC3G NJTC7eaeN5TMjG3uPxiThnJtufKu3E0HI8PhDtFqFSqXD4WMWH2qqvf6kKYN+qOd u/9oHt9gpIc2x18Ve0B/euAhs48f3BRtdC+NG/hDuTK/Z9I0F5EABbowIrzUyFRw oK3pEUEj0Bk9Cc4sWawLR31CP84Kf5h8mpucSsfcH38rDTRWY5ydquV5Q/+98RXJ SKnFn2rg6dcCTyaJyPGN6IfVNGkGHBOACMjY1Abmt/qEoRcl/ddmkdJZRixszoy0 5j2/yp0rJQg0aDx3Acynaml/JBaBTD157uxZNoosQQMMYEzIF3jMZcuYMhVF7R+q kpyrFo/fTGevEpRpNSDqkhulOc7tmnjko0HmEZjdtX2/lBxWMH8= =o983 -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170211094818.GA70716>