From owner-cvs-sys Mon Mar 31 10:15:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA01380 for cvs-sys-outgoing; Mon, 31 Mar 1997 10:15:44 -0800 (PST) Received: from spinner.DIALix.COM (root@spinner.dialix.com [192.203.228.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA01375; Mon, 31 Mar 1997 10:15:14 -0800 (PST) Received: from spinner.DIALix.COM (peter@localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.8.5/8.8.5) with ESMTP id CAA16522; Tue, 1 Apr 1997 02:14:17 +0800 (WST) Message-Id: <199703311814.CAA16522@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org Subject: Re: cvs commit: src/sys/kern vfs_syscalls.c src/sys/ufs/ufs ufs_lookup.c ufs_vnops.c In-reply-to: Your message of "Mon, 31 Mar 1997 19:51:52 +0400." Date: Tue, 01 Apr 1997 02:14:15 +0800 From: Peter Wemm Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= wrote: > On Mon, 31 Mar 1997, Peter Wemm wrote: > > > Symlinks do not have modes though, they are accessable to everything that > > can read the directory (as before). They are made to show this fact at > > lstat time (they appear as mode 0777 always, since that's how the the > > lookup routines in the kernel treat them). > > Thanks! BTW, what about setting immutable bit on symlink, is it ever > possible? Yes, it could be done if chflags() was changed to not follow symlinks, or by creating lchflags(). Both options are easy, it probably makes sense to be able to create an unchangeable symlink, especially for a system with securelevel > 0. I asked about this before, I think. Also, Bruce mentioned flags too. For consistancy, lchflags() would be best, but I wonder if we can have syscalls > 256 - because the rate that they are being used up between the three *BSD projects, we're going to have find out.. BTW, does anybody see any value in having modes for links? The kernel lookup routines see the link and automatically readlink() it when crossing them and don't do any permission checks. > -- > Andrey A. Chernov > > http://www.nagual.ru/~ache/ Cheers, -Peter