From owner-freebsd-hackers Sun Jun 27 5:39:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from orchard.arlington.ma.us (orchard.epilogue.com [128.224.138.4]) by hub.freebsd.org (Postfix) with ESMTP id 76F3215121 for ; Sun, 27 Jun 1999 05:39:26 -0700 (PDT) (envelope-from sommerfeld@orchard.arlington.ma.us) Received: from orchard.arlington.ma.us (localhost [[UNIX: localhost]]) by orchard.arlington.ma.us (8.8.8/1.34) with ESMTP id MAA22238; Sun, 27 Jun 1999 12:39:07 GMT Message-Id: <199906271239.MAA22238@orchard.arlington.ma.us> To: Francois-Rene Rideau Cc: Linux Kernel , FreeBSD Hackers , NetBSD Kernel Subject: Re: Improving the Unix API In-Reply-To: Message from Francois-Rene Rideau of "Sun, 27 Jun 1999 11:45:26 +0200." <19990627114526.A10755@ZhengHe.augustin.thierry> Date: Sun, 27 Jun 1999 08:39:06 -0400 From: Bill Sommerfeld Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > .. but there remained one that garbled meta-data had made into a > non-existing block device, that would resist rm -f. He realized > that the device had an immutable attribute. However, the problem is > that to change the attribute, you have to open the file before you > can ioctl() on it; BSD4.4 and its progeny deal with this by providing both chflags() and fchflags() system calls; as you don't need to be able to do an open() call to use chflags(), you can just fix the immutable attribute once you have the system running at an appropriate securelevel. - Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message