From owner-freebsd-hackers Thu Oct 3 21:21: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B903137B401 for ; Thu, 3 Oct 2002 21:21:04 -0700 (PDT) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49BBB43E77 for ; Thu, 3 Oct 2002 21:21:03 -0700 (PDT) (envelope-from babolo@aaz.links.ru) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by aaz.links.ru (8.12.6/8.12.6) with ESMTP id g944Own1099781; Fri, 4 Oct 2002 08:24:58 +0400 (MSD) (envelope-from babolo@aaz.links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.12.6/8.12.6/Submit) id g944Owac099780; Fri, 4 Oct 2002 08:24:58 +0400 (MSD) Message-Id: <200210040424.g944Owac099780@aaz.links.ru> Subject: Re: related jail topic - /dev/null often and regularly reverts permissions... X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: To: Firsto Lasto Date: Fri, 4 Oct 2002 08:24:57 +0400 (MSD) From: "."@babolo.ru Cc: aurelien.nephtali@wanadoo.fr, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=KOI8-R Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I use jails intensively, but never give a possibility for that type of changes. 2 ways: - chflags schg /path/to/jail/dev/* - mount -r /reduced_set_of_dev /path/to/jail/dev first for full featured jails and second for light weight jails. (actually I always mount dev in jail directory because of /path/to/jail is nodev mounted, but that is another story) > Well, what I am seeing is the /dev/null changing permissions _after_ the > build/installation of the jail. > > That is, either it is changing at some random time while the jail is > running, or it changes after the jail is stopped, then started again. > > And it happens over and over, that is, if I reset it to 0666, at some time > in the future it will revert to 0600 > > Any idea why ? > > > > > > > >Hi, > > > >I've experimented this when I've rebuilt my world just after the announce > >of > >4.7-RC. mergemaster asked me if I wanted to run MAKEDEV since it had > >changed. > >I think it's this which broke up /dev/null, then i re-runed sh ./MAKEDEV > >and > >everything was fine :) > > > >I don't know if my second run of MAKEDEV solved the problem (maybe it was > >fixed > >before I run it again, I don't exactly know) > > > >-- Aurélien > > > >On Thu, Oct 03, 2002 at 12:25:15PM -0700, Firsto Lasto wrote: > > > > > > If you run a jail, and inside that jail is a /dev with the file > >/dev/null > > > in it, the normal 0666 permissions of /dev/null will often get changed > >to > > > 0600. > > > > > > I cannot see any reason why this would happen - I thought maybe there > >was > > > something in /etc/rc that would do it, but there is not. Further, the > > > reversions seem random and irregular - happens in some jails, doesn't in > > > others. > > > > > > I have witnessed this on multiple jails in multiple different physical > > > machines, on versions from 4.4 to 4.6.2. > > > > > > Anyone have any ideas why this happening ? Has anyone else seen this ? > > > > > > Perhaps /dev/null is not the only one this happens to, but just the most > > > noticable one ? (many programs break when /dev/null is 0600) > > > > > > > > > > > > _________________________________________________________________ > > > MSN Photos is the easiest way to share and print your photos: > > > http://photos.msn.com/support/worldwide.aspx > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-hackers" in the body of the message > ><< attach3 >> > > > > > _________________________________________________________________ > Join the world’s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message