From owner-cvs-bin Wed Nov 12 16:33:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA24419 for cvs-bin-outgoing; Wed, 12 Nov 1997 16:33:16 -0800 (PST) (envelope-from owner-cvs-bin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA24119; Wed, 12 Nov 1997 16:31:11 -0800 (PST) (envelope-from julian@FreeBSD.org) From: Julian Elischer Received: (from julian@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id QAA10191; Wed, 12 Nov 1997 16:28:52 -0800 (PST) Date: Wed, 12 Nov 1997 16:28:52 -0800 (PST) Message-Id: <199711130028.QAA10191@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/bin/chmod chmod.1 src/lib/libc/sys chmod.2 mount.2 src/sbin/mount mntopts.h mount.8 mount.c src/sys/conf options src/sys/kern vfs_syscalls.c src/sys/sys mount.h src/sys/ufs/ufs ufs_vnops.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk julian 1997/11/12 16:28:52 PST Modified files: bin/chmod chmod.1 lib/libc/sys chmod.2 mount.2 sbin/mount mntopts.h mount.8 mount.c sys/conf options sys/kern vfs_syscalls.c sys/sys mount.h sys/ufs/ufs ufs_vnops.c Log: Reviewed by: hackers@freebsd.org in general Obtained from: Whistle Communications tree Add an option to the way UFS works dependent on the SUID bit of directories This changes makes things a whole lot simpler on systems running as fileservers for PCs and MACS. to enable the new code you must 1/ enable option SUIDDIR on the kernel. 2/ mount the filesystem with option suiddir. hopefully this makes it difficult enough for people to do this accidentally. see the new chmod(2) man page for detailed info. Revision Changes Path 1.8 +6 -2 src/bin/chmod/chmod.1 1.11 +20 -1 src/lib/libc/sys/chmod.2 1.14 +12 -0 src/lib/libc/sys/mount.2 1.12 +3 -1 src/sbin/mount/mntopts.h 1.20 +17 -1 src/sbin/mount/mount.8 1.21 +2 -1 src/sbin/mount/mount.c 1.38 +2 -1 src/sys/conf/options 1.82 +3 -3 src/sys/kern/vfs_syscalls.c 1.50 +26 -19 src/sys/sys/mount.h 1.66 +102 -2 src/sys/ufs/ufs/ufs_vnops.c