From owner-freebsd-questions@freebsd.org Wed Feb 8 15:41:33 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A52C4CD6EAC for ; Wed, 8 Feb 2017 15:41:33 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6220BB23 for ; Wed, 8 Feb 2017 15:41:33 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-qk0-x229.google.com with SMTP id 11so126098619qkl.3 for ; Wed, 08 Feb 2017 07:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Sy0D6swPirBQlu2mPvFr9Eo+7gEqu1JXghSi64+i7sg=; b=eCgThdyBIZSboO+G7Qxr+YbGXqyO3wA+u6RDvClDfX5ZVncLxCwFmvCfHsthTMLq/M SzUqYB/o8B6DwJUVX2uvfuoRZqM76Bi1Bi8Ck86VSAy4Upk9FKJWCjopr++oQ9CGUJWT cqQhA8GFwq9v6XZx6hL7WnQh8TP2/Rcecn71isb7JhomuaJgMc8ZXyJTNPgIP4mhgOjK T6UckhlTMLRfaD4OukffPviWSKj6I+sspceRzoYPIRTYGHc0hsvWFxhQF1kWl+3zzsVq ixDEODn0yaZsDw9pEwK/D7d9nU6mUjHRuMrijQViaqbWC5oE5ydk/dK+D3BJdSQcaykL gASg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Sy0D6swPirBQlu2mPvFr9Eo+7gEqu1JXghSi64+i7sg=; b=CKrtKU8Kv2FFzhSSc+VlndmbdnCOln3o1hvSQApkHbc+/2z4FtvKA1IMkN1uFlpSTy RWgCdHMSTxoKpScFE6IqHPyOZkAcyfltbUGdxcecgnKbJ49UL5OhHlomTf/g45QJYqX8 yROUmPEpYOeTt6G+5GdbF0W7QeratDT7Go23MPdV5IlFWLdzyJvf4Thf7k5bhRcjFjqE L2pdzYNBL49Fab+n96k0FmfQ8uPdiUX5T0oCe7bmBxwQ4AmPuXKKpQ3v8ghFwwkJsvzf NFvqQtpMrbblKKM1las75ZZbYtUUuCQ9393dPo5Uuxos4GofCrm+eAAxg2sgYaluRtTO cBpA== X-Gm-Message-State: AMke39lSontwbYvj8kEcGuv8+lFW8LVdxD+QuV2C2pcHD1m73RpeD4akeEBk7XdQNgtpVRAf2a3E1WV8msTB8Q== X-Received: by 10.55.77.216 with SMTP id a207mr23060711qkb.63.1486568492447; Wed, 08 Feb 2017 07:41:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.215.135 with HTTP; Wed, 8 Feb 2017 07:40:52 -0800 (PST) In-Reply-To: <687643e26aeb858b3b5d9f5693829360.squirrel@webmail.harte-lyne.ca> References: <687643e26aeb858b3b5d9f5693829360.squirrel@webmail.harte-lyne.ca> From: Odhiambo Washington Date: Wed, 8 Feb 2017 18:40:52 +0300 Message-ID: Subject: Re: hardening /tmp To: User Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 15:41:33 -0000 On 8 February 2017 at 18:22, James B. Byrne via freebsd-questions < freebsd-questions@freebsd.org> 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. > > tmpfs /tmp tmpfs rw,nosuid,noexec,mode=01777 0 0 > > However, /var/tmp is supposed to survive across reboots so how is this > handled? > How about just getting rid of /tmp and creating a symlink to /var/tmp? I am trying to understand the dangers around that.. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."