From owner-freebsd-fs Mon Oct 27 03:29:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA09674 for fs-outgoing; Mon, 27 Oct 1997 03:29:38 -0800 (PST) (envelope-from owner-freebsd-fs) Received: from gatekeeper.tsc.tdk.com (root@gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA09669 for ; Mon, 27 Oct 1997 03:29:35 -0800 (PST) (envelope-from gdonl@tsc.tdk.com) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.4/8.8.4) with ESMTP id DAA24749; Mon, 27 Oct 1997 03:28:14 -0800 (PST) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id DAA15345; Mon, 27 Oct 1997 03:28:12 -0800 (PST) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id DAA22591; Mon, 27 Oct 1997 03:28:11 -0800 (PST) From: Don Lewis Message-Id: <199710271128.DAA22591@salsa.gv.tsc.tdk.com> Date: Mon, 27 Oct 1997 03:28:11 -0800 In-Reply-To: Ollivier Robert "Re: disabled symlinks" (Oct 27, 12:11am) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Ollivier Robert , freebsd-fs@FreeBSD.ORG Subject: Re: disabled symlinks Sender: owner-freebsd-fs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Oct 27, 12:11am, Ollivier Robert wrote: } Subject: Re: disabled symlinks } According to Wolfram Schneider: } > The nosymlink flag do not allow the creation of a symlink } > on the mounted file system. I'd prefer an option that only affected symlinks in certain directories (perhaps publicly writable directories). Symlinks in /tmp are a hazard, but symlinks in subdirectories of /tmp probably aren't. What if you want to unpack a tar archive containing symlinks in a subdirectory of /tmp? } Could you please modify your patch not to _follow_ symlinks in order to } disallow all symlinks in a given FS ? This is also reasonable, but what errno value is appropriate for syscalls that encounter the forbidden symlinks?