Weird behaviour

2001-02-02 Thread Ollivier Robert

Hi,

I just upgraded with cvsup a June, 4th machine to the latest current and
after installworld and buidling a new kernel, the damn thing boots weirdly.

After /boot/loader, the kernel seems to boot but doesn't display
anything. There's activity on the SCSI bus and on the disks but I can't see
anything and the machine doesn't come up anyway.

I've read UPDATING, creating /boot/device.hints, merged /etc and all that.

What did I miss?
-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-  [EMAIL PROTECTED]
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET 2001


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: Weird behaviour

2001-02-02 Thread Kozlovsky, Marek

Hi,

the same with me, but I cvsup'ed FreeBSD3.5-STABLE, make buildworld, make
installworld, reboot  than the machine boot up, seems to be running, but
no services available. The problem is that the machine is a router and I did
all the things remotely, so I cannot see console (I'm going there today in
the evening). Other strange thing is that it obviously routes :-) but offers
no services (sshd, pop3, smtp, nfs ... etc.)

Marek Kozlovsky

-Original Message-
From: Ollivier Robert [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 9:23 AM
To: FreeBSD Current Users' list
Subject: Weird behaviour


Hi,

I just upgraded with cvsup a June, 4th machine to the latest current and
after installworld and buidling a new kernel, the damn thing boots weirdly.

After /boot/loader, the kernel seems to boot but doesn't display
anything. There's activity on the SCSI bus and on the disks but I can't see
anything and the machine doesn't come up anyway.

I've read UPDATING, creating /boot/device.hints, merged /etc and all that.

What did I miss?
-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-
[EMAIL PROTECTED]
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET
2001


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Please review sh SIGSTOP fix

2001-02-02 Thread Martin Cracauer

Bruce (or other -currenter's)

would you please have a look at the following sh fix? My brain is a
bit rusty and maybe I overlook a drawback.

When a child is receiving SIGSTOP, eval continues with the next
command.  While that is correct for the interactive case (Control-Z
and you get the prompt back), it is wrong for a shellscript, which
just continues with the next command, never again waiting for the
stopped child.  Noted when childs from cronjobs were stopped, just to
make more processes (by wosch).

The fix is not to return from a job wait when the wait returned for a
stopped child while in non-interactive mode.  This bahaviour seems to
be what bash2 and ksh implement.  I tested for correct behaviour for
finnaly killing the child with and without forgrounding it first.
When not foregrouding before killing, the shell continues with the
script, which is what the other shells do as well.

Thanks
Martin

Index: jobs.c
===
RCS file: /home/CVS-FreeBSD/src/bin/sh/jobs.c,v
retrieving revision 1.27.2.1
diff -u -r1.27.2.1 jobs.c
--- jobs.c  2000/06/14 13:42:25 1.27.2.1
+++ jobs.c  2001/02/02 10:28:08
@@ -782,7 +782,8 @@
do {
pid = waitproc(block, status);
TRACE(("wait returns %d, status=%d\n", pid, status));
-   } while (pid == -1  errno == EINTR  breakwaitcmd == 0);
+   } while ((pid == -1  errno == EINTR  breakwaitcmd == 0) ||
+   (WIFSTOPPED(status)  !iflag));
in_dowait--;
if (breakwaitcmd != 0) {
breakwaitcmd = 0;

-- 

Martin Cracauer [EMAIL PROTECTED]http://www.cons.org/cracauer/
 As far as I'm concerned,  if something is so complicated that you can't ex-
 plain it in 10 seconds, then it's probably not worth knowing anyway -Calvin


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



/boot/device.hints file

2001-02-02 Thread Graham Wheeler

Hi all

I just cvsupped to FreeBSD-current yesterday, after running stable for
quite a while, mostly because I'd like to try the ACPI support in the
hope that I will extend the battery life on my laptop.

When trying to compile the kernel, I get an error saying I should
install a /boot/device.hints file first.

I don't see anything in the manpages or archives about this. Can someone
please enlighten me as to what this file should be?

TIA
gram 
-- 
Dr Graham WheelerE-mail: [EMAIL PROTECTED]
Director, Research and Development   WWW:http://www.cequrux.com
CEQURUX Technologies Phone:  +27(21)423-6065
Firewalls/VPN SpecialistsFax:+27(21)424-3656


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: /boot/device.hints file

2001-02-02 Thread Walter Belgers

Graham Wheeler wrote:
 When trying to compile the kernel, I get an error saying I should
 install a /boot/device.hints file first.

See the /usr/src/UPDATING file:

2825:
/boot/device.hints is now required for installkernel to
succeed.  You should copy GENERIC.hints for your architecture
into /boot/device.hints. [..]

Cheers,
Walter.
-- 
Walter Belgers "Si hoc signum legere potes, operis boni in rebus
[EMAIL PROTECTED]   Latinis alacribus et fructuosis potiri potes!" 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Wierd behaviour [UPDATE]

2001-02-02 Thread Ollivier Robert

Update to my previous mail:

trying a PRE_SMPNG kernel doesn't change anything, it still displays
nothing. I've also updated my /boot/loader and bootblocks.

Still no idea?
-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-  [EMAIL PROTECTED]
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET 2001


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: /boot/device.hints file

2001-02-02 Thread Karol Makowski

On Fri, 2001-02-02 at 11:35:21, Graham Wheeler wrote:
[cut]
 I don't see anything in the manpages or archives about this. Can someone
 please enlighten me as to what this file should be?

Try /usr/src/UPDATING

-- 
Karol Makowski
Market Internetowy Click And Buy sp z o.o.  
http://www.buy.pl
GSM: +48 606 926599


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: pcm driver and DEVFS

2001-02-02 Thread Alex Kapranoff

On Fri, Feb 02, 2001 at 04:11:29PM +0900, Yoshihiro Koya wrote:
 Hello,
 
 I did make world a couple days ago.  The system was built from cvsup'd 
 source on Jan 30:
 --
  elf make world started on Tue Jan 30 06:23:38 JST 2001
 --
 
 The system uses DEVFS. But I have some issue around sound drivers.
 I usually use mpg123(Version 0.59r (1999/Jun/15))
 or x11amp(version 0.8).  Before using DEVFS, I was able to adjust
 sound volume in the sophisticated manner.
 But, after installing DEVFS, I wasnt adjust sound volume.
 It might be difficult to run x11amp with DEVFS.
 On the other hand, mpg123 works. But, its sound is too loud.
 
 Added to this, before install DEVFS, I found /dev/dsp1 or /dev/dsp0 
 in /dev.  But I only found the different kind of files:
 
 % ls /dev
[skip]
 The files /dev/dsp1.0 and /dev/dsp1.1 are new to me.  Of course,
 I tried to do
 % x11amp -e /dev/dsp1.0
 % x11amp -e /dev/dsp1.1
 % x11amp -e /dev/dspW1.0
 % x11amp -e /dev/dspW1.1
 But in vain.
 
 Does some have solution or suggestion?

  Yep. I have these in my /etc/rc.devfs:
=
ln -fs /dev/audio1.0 /dev/audio
ln -fs /dev/dsp1.0 /dev/dsp
ln -fs /dev/mixer1 /dev/mixer
=

This produces almost exactly same environment both with DEVFS and without.

-- 
Alex Kapranoff,  Voice: +7(0832)791845
We've lived 32 days in the brand new millenium...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



GET LOANS UP TO $1,000,000 Bad Credit OK!

2001-02-02 Thread vishel
Title: catalyst_mortgage





  

  Mortgage 
Services 4 You
  Helping 
To Make Your Dreams Come True
  What 
are your immediate dreams? Do you want to Refinance your existing 
loan, 
purchase a new home, consolidate your bills, make home improvements 
or 
just want some extra cash for a vacation or to start a business? 
Whatever 
your needs we can help. It's easy to qualify and your loan review 
is 
FREE…
  HOME 
IMPROVEMENT LOANS
   

DEBT 
CONSOLIDATION LOANS
   




REFINANCE 
LOANS
   





CASH 
OUT LOANS
   Qualifying 
is 
at your fingertips. Many of the NEW Loan Programs offer Home-Owners 
the 
ability to consolidate bills into ONE low monthly payment. Benefits 
of 
this type of loan include tax advantages and interest savings. 
Programs 
for Home-Owners only.
   Pay off 
existing 
high-interest loans, credit cards, student loans, medical and 
personal 
bills. Purchase or payoff vehicles, motorcycles and RV's. Money for 
building 
pools, spas, decks, remodeling, tuition, weddings, vacations, 
business, 
or just about anything. Debt Consolidation, Home Improvement or 
Cash-Out 
Loans are available for qualified applicants. Re-finance your 
existing 
loan for a lower rate.
   NO up-front 
fees, 
and in most cases approval is possible within 24 hours. CASH can be 
in 
your hands within a couple of weeks after approval. 
  Applying 
is EASY - just…Click 
Here

  






To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


Win a top of the range iMac, Palm Pilot or Discman

2001-02-02 Thread Mailer





  
  

  


  
  
  

  
  
  

   
   
  
  

  


  Connect to your 
future and start 2001 as a winnerWin 
a top of the range iMac, Palm Pilot or 
DiskMan

  
All 
you have to do to win is register with planetgraduate, the new 
international site for students, graduates and employers. Simply 
click here to get started 
Take just a few 
seconds to register and enter our draw to win either a Palm Pilot or 
Sony DiskMan. Take a few minutes more and enter your CV with 
planetgraduate's CV Builder and you could win the incredibly cool 
iMac and be connected to the Internet in a couple of clicks. 


  
  Enter our prize draw 
today to win one of these top prizes:-A top of the range iMacOne of two Palm Pilots 
One of three Portable CD players

  
  
  
  
  

  
  DiskMan 
  iMac
  Palm 
Pilot
  

  
  

  
  PS 
Double your chances of winning a DiskMan or Palm Pilot by helping us 
let your friends know about this great competition.

  
  

  
  The draw will take place on Friday 23rd February 
2001Prizes may differ from models shown

  
  

  

  



  


get 
  a job now|study 
  net.the 
  village|relax 
   enjoy.top 
  deals|behind 
  the scenes
  

  

contact 
  us.privacy 
  policy.terms 
  of use.copyright
  





Re: kernel threading: the first steps [patch]

2001-02-02 Thread Julian Elischer

Peter Jeremy wrote:
 
 On 2001-Jan-27 00:33:23 -0800, Root Dude [EMAIL PROTECTED] wrote:
 I've broken the proc structure into 4 structures.
 
 Leaving aside the issue of whether or your efforts were a waste of time,
 I have some comments on the ordering of fields.  Since the fields are
 being re-arranged anyway, I'd like to suggest that the implementation
 characteristics be taken into account.  I'm mainly thinking of padding
 between fields here.
 
 A second, far less important issue is the interaction between field
 order and code size on the IA32.  Given that most structure references
 are base+offset, there's an extra 3-byte overhead in accessing fields
 more than 127 bytes from the pointer - there's no direct speed penalty
 except on the 80386, but there is an indirect penalty for larger code
 (ie bigger cache footprint).  This suggests that fields with a high
 static reference count should be towards the front of structures.

to counter this, it has been reported that puting fields elsewher 
can reduce cache thrashing as most structures have the important 
fields at the front. It's hard to know which effect would be 
greater.. :-)

 
 Peter

-- 
  __--_|\  Julian Elischer
 /   \ [EMAIL PROTECTED]
(   OZ) World tour 2000-2001
--- X_.---._/  
v


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Wierd behaviour [UPDATE]

2001-02-02 Thread Jake Burkholder

 Update to my previous mail:
 
 trying a PRE_SMPNG kernel doesn't change anything, it still displays
 nothing. I've also updated my /boot/loader and bootblocks.
 
 Still no idea?

Are you running a stripped down kernel?  or generic?

There's a problem with kernels that are too large not booting.
If you bypass /boot/loader and load the kernel directly it should
boot; then take everything you don't need out of the kernel config
and build a new kernel.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: pcm driver and DEVFS

2001-02-02 Thread John Baldwin


On 02-Feb-01 Yoshihiro Koya wrote:
 Hello,
 
 I did make world a couple days ago.  The system was built from cvsup'd 
 source on Jan 30:
--
 elf make world started on Tue Jan 30 06:23:38 JST 2001
--
 
 The system uses DEVFS. But I have some issue around sound drivers.
 I usually use mpg123(Version 0.59r (1999/Jun/15))
 or x11amp(version 0.8).  Before using DEVFS, I was able to adjust
 sound volume in the sophisticated manner.
 But, after installing DEVFS, I wasnt adjust sound volume.
 It might be difficult to run x11amp with DEVFS.
 On the other hand, mpg123 works. But, its sound is too loud.
 
 Added to this, before install DEVFS, I found /dev/dsp1 or /dev/dsp0 
 in /dev.  But I only found the different kind of files:
 
 % ls /dev
 acd0a   cuala0  ptyp0   ttyv3
 acd0c   dsp1.0  ptyp1   ttyv4
 ad0 dsp1.1  random  ttyv5
 ad0s1g  dspW1.0 sndstat ttyv6
 ad0s2a  dspW1.1 stderr@ ttyv7
 ad0s2b  fd/ stdin@  ttyv8
 ad0s2e  fd0 stdout@ ttyv9
 ad0s2f  io  sysmousettyva
 apm kbd0tty ttyvb
 apmctl  klogttyd0   ttyvc
 audio1.0kmemttyid0  ttyvd
 audio1.1log@ttyld0  ttyve
 bpsm0   mem ttyp0   ttyvf
 console mixer1  ttyp1   tun0
 consolectl  nullttyv0   urandom
 cuaa0   pci ttyv1   vga@
 cuaia0  psm0ttyv2   zero
 
 The files /dev/dsp1.0 and /dev/dsp1.1 are new to me.  Of course,
 I tried to do
 % x11amp -e /dev/dsp1.0
 % x11amp -e /dev/dsp1.1
 % x11amp -e /dev/dspW1.0
 % x11amp -e /dev/dspW1.1
 But in vain.
 
 Does some have solution or suggestion?

Add 'hw.snd.unit=1' to /boot/loader.conf.

-- 

John Baldwin [EMAIL PROTECTED] -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: program hangs in thread scheduler

2001-02-02 Thread Jason Evans

On Thu, Feb 01, 2001 at 02:08:54PM -0500, Mike Heffner wrote:
 
 Is this a problem with the thread scheduler or is this somehow related to the
 application?
 
 (gdb) bt
 #0  0x284d74cc in poll () from /usr/lib/libc.so.5
 #1  0x2848ce74 in thread_kern_poll (wait_reqd=1)
 at /usr/src/lib/libc_r/uthread/uthread_kern.c:833
 #2  0x2848c7c9 in _thread_kern_scheduler ()
 at /usr/src/lib/libc_r/uthread/uthread_kern.c:481
 #3  0xd0d0d0d0 in ?? ()
 #4  0x282a66cc in g_main_run (loop=0x8167b40) at gmain.c:935
 #5  0x281c6047 in gtk_main () from /usr/X11R6/lib/libgtk12.so.2
 #6  0x80590f1 in main (argc=1, argv=0xbfbffb9c) at aim.c:610
 #7  0x80576f9 in _start (arguments=0xbfbffc80 "gaim")
 at /usr/src/lib/csu/i386-elf/crt1.c:96

This stack trace looks more or less okay to me.  The problem is probably in
the application rather than in libc_r.

Jason


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Watch your devfs permissions in driver make_dev calls

2001-02-02 Thread Robert Watson


Driver developers!

As you probably know by now, Poul-Henning has enabled DEVFS in the GENERIC
kernel on FreeBSD 5.0-CURRENT.  This is a strong feature and it's great to
see it getting brought back to life.  However!  Many of consumers of
make_dev() have chosen their default permissions somewhat sloppily, and
the results have to be thought through a little.  On my workstation, I
found the following:

crw-r--r--   1 root operator  117,   0 Dec 31  1969 acd0a
crw-r--r--   1 root operator  117,   2 Dec 31  1969 acd0c
..
crw-rw-rw-  1 root wheel  30,  20 Dec 31  1969 audio1.0
crw-rw-rw-  1 root wheel  30, 0x00010014 Dec 31  1969 audio1.1
..
crw-rw-rw-  1 root wheel  21,   0 Dec 31  1969 bpsm0
..
crw-rw-rw-  1 root wheel  30,  19 Dec 31  1969 dsp1.0
crw-rw-rw-  1 root wheel  30, 0x00010013 Dec 31  1969 dsp1.1
crw-rw-rw-  1 root wheel  30,  21 Dec 31  1969 dspW1.0
crw-rw-rw-  1 root wheel  30, 0x00010015 Dec 31  1969 dspW1.1
..
crw-rw-rw-  1 root wheel  30,  16 Dec 31  1969 mixer1
..
crw-r--r--  1 root wheel  78,   0 Dec 31  1969 pci
..
cr--r--r--  1 root wheel  30,   6 Dec 31  1969 sndstat
..
crw-r--r--  1 root operator  108, 255 Dec 31  1969 usb
crw-r--r--  1 root operator  108,   0 Dec 31  1969 usb0

I've done a brief grep through src/sys/dev/* and noticed a lot of other
potential problems.  I realize the permissions on a sound device seem a
bit trivial, but consider the following scenario:

  Due to a bug in fingerd, a set of workstations in a mail/phone
  order center is compromised.  The attacker uses the bug in fingerd
  to gain read access to /dev/audio or /dev/dsp, and streams recordings
  of all conversations in the room to a remote site where he types in
  credit card numbers and personal information as he sees fit.  Or
  maybe he exploits the same bugs to listen to administrator
  conversations in a NOC and pick up router passwords.

Some of the permissions above are probably fine, as they're for getting
status on busses, etc, but generally speaking, excessively liberal
permissions can be a serious problem in /dev.  Allow direct read access
from CDROM media can give them access to keying material or password
crypts for CDROM-booted workstations, or access to 1-time pad data stored
on the CD.  Or to licensed commercial software or intellectual property.

I'm not familiar with the fbtab mechanism, but it may be that we should be
adding support for the audiot devices (etc) to it, or making this part of
an eventual devd.  In any case, the default devfs permissions should be
intended to be closed, and then opened as needed by privileged software,
rather than open and then closed.  Otherwise you introduce race
conditions, and unintended consequences.

Also, I realize that we have constants in kernel for the wheel and
operator groups, but ideally, I'd like to see those be purely userland
concepts.  The kernel security model generally recognizes one uid, the
superuser, as having special privileges over others.  Hardcoding other
user or group id's into the kernel pushes userland concepts (/etc/passwd,
/etc/group, /usr/sbin/login) into the kernel.  Setting additional rights
for specific groups (operator, tty, etc) can be done as part of a userland
boot or login process.

Robert N M Watson FreeBSD Core Team, TrustedBSD Project
[EMAIL PROTECTED]  NAI Labs, Safeport Network Services



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Wierd behaviour [UPDATE]

2001-02-02 Thread Ollivier Robert

According to Jake Burkholder:
 Are you running a stripped down kernel?  or generic?

Heavily trimmed down kernel. I can still boot my June, 4th kernel just
fine (and it had more things in it). I'm looking at the hints (will try
to compile them statically) because it is close to what the comment in
UPDATING speaks about but I'm lost if it isn't that...
-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-  [EMAIL PROTECTED]
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET 2001


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: pcm driver and DEVFS

2001-02-02 Thread Brian Somers

 On Fri, Feb 02, 2001 at 04:11:29PM +0900, Yoshihiro Koya wrote:
  Hello,
  
  I did make world a couple days ago.  The system was built from cvsup'd 
  source on Jan 30:
  --
   elf make world started on Tue Jan 30 06:23:38 JST 2001
  --
  
  The system uses DEVFS. But I have some issue around sound drivers.
  I usually use mpg123(Version 0.59r (1999/Jun/15))
  or x11amp(version 0.8).  Before using DEVFS, I was able to adjust
  sound volume in the sophisticated manner.
  But, after installing DEVFS, I wasnt adjust sound volume.
  It might be difficult to run x11amp with DEVFS.
  On the other hand, mpg123 works. But, its sound is too loud.
  
  Added to this, before install DEVFS, I found /dev/dsp1 or /dev/dsp0 
  in /dev.  But I only found the different kind of files:
  
  % ls /dev
 [skip]
  The files /dev/dsp1.0 and /dev/dsp1.1 are new to me.  Of course,
  I tried to do
  % x11amp -e /dev/dsp1.0
  % x11amp -e /dev/dsp1.1
  % x11amp -e /dev/dspW1.0
  % x11amp -e /dev/dspW1.1
  But in vain.
  
  Does some have solution or suggestion?
 
   Yep. I have these in my /etc/rc.devfs:
 =
 ln -fs /dev/audio1.0 /dev/audio
 ln -fs /dev/dsp1.0 /dev/dsp
 ln -fs /dev/mixer1 /dev/mixer
 =
 
 This produces almost exactly same environment both with DEVFS and without.

Strange.  I have a stock rc.devfs and get the above links too :-)

$ cd /sys/dev/sounds/pcm
$ fgrep make_dev_alias *.c
sound.c:dsp = make_dev_alias(pdev, "dsp");
sound.c:dspW = make_dev_alias(pdev, "dspW");
sound.c:audio = make_dev_alias(pdev, "audio");
sound.c:mixer = make_dev_alias(pdev, "mixer");

 -- 
 Alex Kapranoff,  Voice: +7(0832)791845
 We've lived 32 days in the brand new millenium...

-- 
Brian [EMAIL PROTECTED]brian@[uk.]FreeBSD.org
  http://www.Awfulhak.org   brian@[uk.]OpenBSD.org
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Patch for non-netgraph bridge code worthy of attention for people experimenting with bridging setups (including ng_bridge)

2001-02-02 Thread Rogier R. Mulhuijzen

I found this while experimenting with both "legacy" bridge and ng_bridge. 
The bridging code doesn't check its activation everywhere so when I started 
using an ng_bridge node I started getting weird errors.

Patch is rather simple, can someone submit this?

 DocWilco

Date: Mon, 29 Jan 2001 08:20:01 -0800 (PST)
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Re: kern/24720: Bridging code does not always check activation 
(w/patch)
Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Sender: [EMAIL PROTECTED]

Thank you very much for your problem report.
It has the internal identification `kern/24720'.
The individual assigned to look at your
report is: freebsd-bugs.

You can access the state of your problem report at any time
via this link:

http://www.freebsd.org/cgi/query-pr.cgi?pr=24720

 Category:   kern
 Responsible:freebsd-bugs
 Synopsis:   Bridging code does not always check activation (w/patch)
 Arrival-Date:   Mon Jan 29 08:20:01 PST 2001



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



DEVFS

2001-02-02 Thread Wesley Morgan

With devfs "default" in -current, I have a question about permissions. I
know that rc.devfs will set up custom permissions at boot... But what
about a device that detaches? When you re-attach, it goes back to the
default permissions. This is a bit annoying; is there a workaround for it?
Should this be handled by something that does the re-attaching?

-- 
   _ __ ___   ___ ___ ___
  Wesley N Morgan   _ __ ___ | _ ) __|   \
  [EMAIL PROTECTED] _ __ | _ \._ \ |) |
  FreeBSD: The Power To Serve  _ |___/___/___/
  6bone: 3ffe:1ce3:7::b4ff:fe53:c297
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



devfs not making vn devices

2001-02-02 Thread Doug Barton

I've been using devfs for a long time without problems. I had
device vn in my kernel conf since the pre-devfs days, and today I needed
to use a vn device to build picobsd. Lo and behold, I don't have any vn
devices of any sort in /dev. I tried 'vnconfig -c /dev/vn0' but it also
complained that the device didn't exist.

I know that the goal is for vn to be phased out (at least that's
my impression) but what do we do in the meantime?

Doug
-- 
"Pain heals. Chicks dig scars. Glory . . . lasts forever."
-- Keanu Reeves as Shane Falco in "The Replacements"

Do YOU Yahoo!?




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: RFC: user-config alt path in Linux emulation

2001-02-02 Thread Marcel Moolenaar

Andrea Campi wrote:
 
 When running a Linux binary in Linux compat mode, all calls to open(),
 readdir() and such, end up calling linux_emul_find() from linux_util.c.
 This functions looks for a directory/file with the same name in the
 /compat/linux hierarchy.
 The net effect is that there is no way to, for instance, back up the
 real /usr from Tivoli, etc... as there is no way to get to a real path
 if there is anything with the same name inside /compat/linux.
 
 I'd like to understand if there is any accepted way to work around this
 limitation (no, symlinks are not an option :-p), I'm sure not.

/compat is already a symlink (to /usr/compat to be precise). What's with
symlinks that it can't be an option?

-- 
Marcel Moolenaar
  mail: [EMAIL PROTECTED] / [EMAIL PROTECTED]
  tel:  (408) 447-4222


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: about ppp..

2001-02-02 Thread Idea Receiver



On Fri, 2 Feb 2001, Julian Elischer wrote:

 Idea Receiver wrote:
  
  On Fri, 26 Jan 2001, Julian Elischer wrote:
   how 'current' are your systems?
   when did this behaviour start?
   (i.e. before or after the latest round of netgraph changes?)
  
  it is before new netgraph...
  i think the new netgraph cause the same problem as well..
 
 
 can you give more information on this problem?

i cant remember when the exact day the problem started.
i did a cvsup/make world recently, the problem is still exist.
btw, i am running PPPoE. but the problem also exists in simple
PPP (modem) connection as well.

btw, i have found, if I try to download something like 1G,
I havnt see any problem occer, the download speed is fairly constant.
however, the problem always happen when someone try to play on-line
game, or maybe try to receive/sent icq files, or reading web pages, or
even just doing  a dns request, then this lagging problem often happen.


the ppp.config is fairly stander shows as follow,
 set device PPPoE:rl0
 set mru 1454
 set mtu 1454
 set speed sync
 enable lqr
 set cd 4
 set authname xxx
 set authkey x
 set dial
 set login
 set redial 30






To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: devfs not making vn devices

2001-02-02 Thread John Baldwin


On 03-Feb-01 Doug Barton wrote:
   I've been using devfs for a long time without problems. I had
 device vn in my kernel conf since the pre-devfs days, and today I needed
 to use a vn device to build picobsd. Lo and behold, I don't have any vn
 devices of any sort in /dev. I tried 'vnconfig -c /dev/vn0' but it also
 complained that the device didn't exist.
 
   I know that the goal is for vn to be phased out (at least that's
 my impression) but what do we do in the meantime?
 
 Doug

mdconfig(8) has all of the functionality of vnconfig now, along with all the
functionality of the old md(4) driver.

-- 

John Baldwin [EMAIL PROTECTED] -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



FreeBSD Security Advisory: FreeBSD-SA-01:20.egos

2001-02-02 Thread FreeBSD Security Advisories

=
FreeBSD-SA-01:09Security Advisory
FreeBSD, Inc.

Topic:  Local ego exploit

Category:   (l)users
Announced:  2001-02-03
Credits:AntiOffline.com, Disgraced.org, Deficiency.org
sil, deran9ed
Affects:All released (l)users of FreeBSD

Corrected:  (l)Users should seek psychotherapy shock therapy,
along with multiple doses of Thorazine chased by
2 shots of Liquid Draino for maximum effectivity

Vendor status:  Feelings still hurting while crying over spilled
milk.

FreeBSD only:   YES and some of their (l)users

I.   Background

FreeBSD (l)users became disgruntled about the original advisory
concerning the bloated remarks aimed towards their chopperating
sysdumb. This became an issue for some on Internet Relay Chat,
and caused them to ban others' connection since their ego's had
been hurt. (boo fsckin hoo)

II.  Problem Description

Penis envy seems to be the number one cause, and we are trying
to differentiate between the women who still have penises, that
are crying (game) foul.

For the hermies we suggest counseling, and estrogen treatment
followed by a visit to fellow hermie JP @ AntiOnline.com as well
as the switch hitting lesbo at http://www.happyhacker.org in an
effort to ass!ess their sexualities.

Egos can be strengthened by practicing humility and learning that
once in a while it is a good thing to actually have a good laugh,
although to those whose egos' that have been hurt we suggest that
you replace the batteries in your dildos and reinsert them into
your anal crevices.

III. Impact

None to those with a sense of humor, although those without them
will grow old and become miserable rootards, capable of placing
razor blades, crushed glass, and cyanide, in the bags of small
children who are out for Halloween Trick or Treating.

IV.  Workaround

Take a look at your own shortcomings before judging others.

V.   Solution

Socialize a bit more.

VI.  Shouts

Marshall Mathers




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: devfs not making vn devices

2001-02-02 Thread Peter Wemm

Doug Barton wrote:
   I've been using devfs for a long time without problems. I had
 device vn in my kernel conf since the pre-devfs days, and today I needed
 to use a vn device to build picobsd. Lo and behold, I don't have any vn
 devices of any sort in /dev. I tried 'vnconfig -c /dev/vn0' but it also
 complained that the device didn't exist.
 
   I know that the goal is for vn to be phased out (at least that's
 my impression) but what do we do in the meantime?

In the meantime?  besides using mdconfig, try this:

mkdir /dev2
cd /dev2
sh /usr/src/etc/MAKEDEV vn0
vnconfig -c /dev2/vn0 

 Doug

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Watch your devfs permissions in driver make_dev calls

2001-02-02 Thread Peter Wemm

Robert Watson wrote:

 crw-r--r--  1 root wheel  78,   0 Dec 31  1969 pci

This one may appear harmless, but it is not.  It is trivially easy to create
an alignment fault (fatal on an alpha) with the userland pciconf tool.
We must not allow this to be used by users until the kernel part is fixed.

Eg: try this on an alpha: pciconf -r -l pci0:x:x 0x3 - ie: read a longword
at byte offset 3 in configuration space.. kaboom!

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: DEVFS newbie...

2001-02-02 Thread Warner Losh

In message 18334.980748975@critter Poul-Henning Kamp writes:
: 1. Say I want to use DEVFS, what should I change? 
: 
: Nothing.  Just add DEVFS to your kernel config file.

So it updates /dev all by itself?  What if I want dev nodes elsewhere
in the tree, say for a jail?

Warner



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: DEVFS newbie...

2001-02-02 Thread Warner Losh

In message [EMAIL PROTECTED] Julian Elischer writes:
: you can't.. what is the major number?
: 
:  You don't know because they will be dynamically assigned. 
: Only the kernel knows.
: Eventually, major numbers may go away entirely, (or just be a 
: comlpetely random meaningless number, present only to keep old 
: programs like tar() happy).

What if I want to create a few devices (eg not all in the system) in a
chroot'd environment?

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message