Date: 27 Oct 1997 13:45:01 +0100 From: Wolfram Schneider <wosch@cs.tu-berlin.de> To: Don Lewis <Don.Lewis@tsc.tdk.com> Cc: Ollivier Robert <roberto@keltia.freenix.fr>, freebsd-fs@FreeBSD.ORG Subject: Re: disabled symlinks Message-ID: <p1i90vf74tu.fsf@panke.panke.de> In-Reply-To: Don Lewis's message of Mon, 27 Oct 1997 03:28:11 -0800 References: <199710271128.DAA22591@salsa.gv.tsc.tdk.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Don Lewis <Don.Lewis@tsc.tdk.com> writes: > } > 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). I thought about that too. May be public writable + sticky bit (mode 1777). IMHO this should be controlled by a sysctl variable 1) do not create symlinks 2) do not follow symlinks at all 3) do not follow symlinks in directories with the mode 1777 > } 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? #define EACCES 13 /* Permission denied */ -- Wolfram Schneider <wosch@apfel.de> http://www.apfel.de/~wosch/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p1i90vf74tu.fsf>