Re: related jail topic - /dev/null often and regularly reverts permissions...

2002-10-05 Thread Jens Trzaska
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 th

Re: related jail topic - /dev/null often and regularly reverts permissions...

2002-10-03 Thread .
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

Re: related jail topic - /dev/null often and regularly reverts permissions...

2002-10-03 Thread Firsto Lasto
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

Re: related jail topic - /dev/null often and regularly reverts permissions...

2002-10-03 Thread Aurélien Nephtali
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 MAKE

related jail topic - /dev/null often and regularly reverts permissions...

2002-10-03 Thread Firsto Lasto
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,