From owner-freebsd-bugs Sun Aug 19 22: 0: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 659FF37B417 for ; Sun, 19 Aug 2001 22:00:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7K500n44234; Sun, 19 Aug 2001 22:00:00 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 45DD837B40B for ; Sun, 19 Aug 2001 21:58:58 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7K4wwo44152; Sun, 19 Aug 2001 21:58:58 -0700 (PDT) (envelope-from nobody) Message-Id: <200108200458.f7K4wwo44152@freefall.freebsd.org> Date: Sun, 19 Aug 2001 21:58:58 -0700 (PDT) From: Chris Fernando To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/29887: chflags can not set 'noschg' to files in multiuser mode; can't update /kernel. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29887 >Category: kern >Synopsis: chflags can not set 'noschg' to files in multiuser mode; can't update /kernel. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 19 22:00:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Chris Fernando >Release: 4.4-RC >Organization: >Environment: FreeBSD styx.sleem.net 4.4-RC FreeBSD 4.4-RC #2: Mon Aug 20 00:25:12 EDT 2001 haides@styx.sleem.net:/usr/src/sys/compile/STYX i386 >Description: after setting a file with chflags to 'schg', you can not unset ('noschg') it in multiuser mode. you must boot the system into single user mode to make changes to the file. example in multiuser: styx ~ #touch foo styx ~ #chflags schg foo styx ~ #chflags noschg foo chflags: foo: Operation not permitted >How-To-Repeat: 1) create a file 2) chflags schg 3) chflags noschg step 3 should produce the error >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message