From owner-freebsd-bugs Wed Oct 23 12:52:47 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA05869 for bugs-outgoing; Wed, 23 Oct 1996 12:52:47 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA05780 for ; Wed, 23 Oct 1996 12:51:35 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id VAA25212; Wed, 23 Oct 1996 21:51:26 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id VAA00565; Wed, 23 Oct 1996 21:51:25 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.6/8.6.9) id VAA26729; Wed, 23 Oct 1996 21:20:30 +0200 (MET DST) From: J Wunsch Message-Id: <199610231920.VAA26729@uriah.heep.sax.de> Subject: Re: kern/1336 To: sja@tekla.fi (Sakari Jalovaara) Date: Wed, 23 Oct 1996 21:20:30 +0200 (MET DST) Cc: freebsd-bugs@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9610231122.AA29064@poveri.tekla.fi> from Sakari Jalovaara at "Oct 23, 96 02:22:31 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Sakari Jalovaara wrote: > Perhaps make mount(8) warn if the permissions of a mount point > are unreasonable? Nice both for new sysadmins and old farts > who think they can't make such mistakes. > > if ((mount_point_stat.st_mode & 0555) != 0555) > warn("rtfm \"man 8 mount\""); Btw., st_mode & 0111 is sufficient. Perhaps it should use syslog() instead of warn (though there are also problems during the early stages of the boot process when syslogd is not yet running). Unless somebody yells and promises to fix the root of the evil inside the kernel, i'm considering this change some day. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)