From owner-freebsd-questions@FreeBSD.ORG Thu Aug 29 19:39:27 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 945CE77F for ; Thu, 29 Aug 2013 19:39:27 +0000 (UTC) (envelope-from kozlov.sergey.404@gmail.com) Received: from mail-pd0-x229.google.com (mail-pd0-x229.google.com [IPv6:2607:f8b0:400e:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7191023B2 for ; Thu, 29 Aug 2013 19:39:27 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id r10so875447pdi.0 for ; Thu, 29 Aug 2013 12:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YvB6GkZB2TEWn5nU6/5V2xqvac0dQ9gJQYrg/W1M15Y=; b=vt857feoieYeLLE4tG85kDMcgOEMCvB+HysflCwqtU4mNcAz8OEyuuu7mxX5GjSHi+ zKuROcm4tax8NufvpbQg8eXFjNzukCBX81qc/i/gD6i5q26eJIjpH4Kzve4LBlRyfh6Z gTbkzH12n4613EWJyrYx6+HbVFPR65wDmSfFUElP26c8LmJCYJEdmdRc6jSRCVbLpdas A9L8dWMJDmhihqnZuYFEgiE2A/K+ofKXoHxTbD11qWEgW4O9G9YKQPbfUMngNNp4CefM OtCG4LuPFQhpryzLdBkqMav96w6srVEAk4s2UqLXSCYDwguedHvnEPFZ05NBkqu/nTr8 kzpA== MIME-Version: 1.0 X-Received: by 10.68.139.201 with SMTP id ra9mr5560133pbb.46.1377805166422; Thu, 29 Aug 2013 12:39:26 -0700 (PDT) Received: by 10.66.122.145 with HTTP; Thu, 29 Aug 2013 12:39:26 -0700 (PDT) Date: Thu, 29 Aug 2013 22:39:26 +0300 Message-ID: Subject: chmod go-r /tmp From: Kozlov Sergey To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 19:39:27 -0000 Hi As I know, all the applications know the names of files they create in /tmp. So is it ok to "chmod go-r /tmp" for security reasons, so the attacker can't get a list of temp files? Won't it break any applications? I search a lot, but I couldn't find anything about it. All the /tmp security hardening advised is to set nosuid,noexec for the partition. Tanks for answers. Kozlov Sergey.