From owner-cvs-bin Sun Jun 1 23:27:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA00358 for cvs-bin-outgoing; Sun, 1 Jun 1997 23:27:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA00264; Sun, 1 Jun 1997 23:25:30 -0700 (PDT) From: Julian Elischer Received: (from julian@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA07545; Sun, 1 Jun 1997 23:24:55 -0700 (PDT) Date: Sun, 1 Jun 1997 23:24:55 -0700 (PDT) Message-Id: <199706020624.XAA07545@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG Subject: cvs commit: src/bin/ls stat_flags.c src/lib/libc/sys chflags.2 src/sys/sys stat.h src/sys/ufs/ufs ufs_vnops.c src/usr.bin/chflags chflags.1 Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk julian 1997/06/01 23:24:53 PDT Modified files: bin/ls stat_flags.c lib/libc/sys chflags.2 sys/sys stat.h sys/ufs/ufs ufs_vnops.c usr.bin/chflags chflags.1 Log: Submitted by: Whistle Communications (archie Cobbs) These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems Revision Changes Path 1.6 +9 -1 src/bin/ls/stat_flags.c 1.7 +10 -2 src/lib/libc/sys/chflags.2 1.13 +4 -1 src/sys/sys/stat.h 1.51 +11 -7 src/sys/ufs/ufs/ufs_vnops.c 1.5 +4 -1 src/usr.bin/chflags/chflags.1