From owner-freebsd-bugs Tue Jan 7 12:40: 5 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E683D37B401 for ; Tue, 7 Jan 2003 12:40:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E84643EA9 for ; Tue, 7 Jan 2003 12:40:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h07Ke3NS022965 for ; Tue, 7 Jan 2003 12:40:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h07Ke38t022964; Tue, 7 Jan 2003 12:40:03 -0800 (PST) Date: Tue, 7 Jan 2003 12:40:03 -0800 (PST) Message-Id: <200301072040.h07Ke38t022964@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: David Malone Subject: Re: bin/46838: security vulnerability in dump Reply-To: David Malone Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/46838; it has been noted by GNATS. From: David Malone To: System Administrator Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/46838: security vulnerability in dump Date: Tue, 7 Jan 2003 20:32:11 +0000 On Tue, Jan 07, 2003 at 09:09:57PM +0100, System Administrator wrote: > When dumping to a file, dump writes this file chmod 644. When the > root-partition is being backed-up, this leaves the dump-file > vulnerable to scanning by unprivileged users for the duration of the dump. I've tested dump in -current, and it creates the file with the mode dictated by my umask. I believe this is the correct behaviour - if you want your dumps created with a more restrictive mode I'd suggest running "umask 077" before running dump. I'll close the PR if this explains the problem you are seeing. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message