Linux-Development-Sys Digest #821, Volume #7 Thu, 4 May 00 03:13:13 EDT
Contents:
pre6/ipchains mail problem (bill davidsen)
Re: CPU Load <- off by 1.00 (jwk)
Re: ?Linux RS/6000 ? (bill davidsen)
local_table and main_table? (Weiguang Shi)
Re: Hacking on mkdep.c (bill davidsen)
Re: A need for better insallation programs ("Cihl")
Annuaire France-Net ("Pierre Haddad")
Re: serial/parallel port programming... (Jonathan Buzzard)
Re: get_user and bottom half help (Eric Taylor)
Biometric authentication and PAM ("Marc E. Christensen")
Different PAM modules on a per-user basis? ("Marc E. Christensen")
Re: Computer Terms.....(was "Re: MS caught breaking web sites") ("Nobody")
Re: Ethernet Controller CS8900 supported by linux? (Nic)
Re: Code transfert from machine to another (Chetan Ahuja)
gdb on /proc/kcore help? (Eric Taylor)
Network interface failed when kernel change to 2.3.99-pre3 ("cschiu")
Network failed when kernel updated to 2.3.99-pre3 ("cschiu")
Re: SHLVL discrepancies (Josef Moellers)
Re: gdb on /proc/kcore help? (Josef Moellers)
test_and_set_bit () (nilesh patel)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.os.linux.networking
Subject: pre6/ipchains mail problem
Date: 3 May 2000 19:23:34 GMT
I am testing a 2.3.99pre6 machine as a firewall, and I have the policy
on incoming packets on the public NIC set to DROP. I can't send mail to
site out on the net, even though I have a rule to ACCEPT by state for
ESTABLISHED or RELATED connections. However, I have masquerade set for
the 2nd test machine behind the firewall, and that works just fine for
mail, ftp, telnet and DNS.
I'm totally at a loss to see what is happening here, but here's a dump
of the firewall settings (sorry for long lines):
================================================================
Chains:
Chain INPUT (policy DROP 277 packets, 19600 bytes)
pkts bytes target prot opt in out source destination
375K 39M ACCEPT all -- eth0 any anywhere anywhere
46 1920 all -- eth1 any anywhere anywhere
state RELATED,ESTABLISHED
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
156 6931 ACCEPT all -- any any news1.tmr.com anywhere
134 10360 ACCEPT all -- any any anywhere news1.tmr.com
Chain OUTPUT (policy ACCEPT 6453 packets, 636800 bytes)
pkts bytes target prot opt in out source destination
===> NAT:
Chain PREROUTING (policy ACCEPT 54796 packets, 9630890 bytes)
pkts bytes target prot opt in out source
destination
Chain POSTROUTING (policy ACCEPT 1398 packets, 104847 bytes)
pkts bytes target prot opt in out source
destination
47 1961 MASQUERADE all -- any any news1.tmr.com anywhere
MASQUERADE
Chain OUTPUT (policy ACCEPT 1398 packets, 104847 bytes)
pkts bytes target prot opt in out source
destination
================================================================
And for the masqueraded machine everything works just fine. Or at
least works. I'm not sure that the "RELATED" code opens up 'auth'
requests from a machine when you connect to the smtp port, nor that it
should, but I do see denied 'auth' connects on another machine.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: [EMAIL PROTECTED] (jwk)
Subject: Re: CPU Load <- off by 1.00
Date: 3 May 2000 19:31:59 GMT
Reply-To: [EMAIL PROTECTED]
On 3 May 2000 14:49:01 GMT, Rao VA
<[EMAIL PROTECTED]> wrote:
>Anders Larsen <[EMAIL PROTECTED]> wrote:
>> Hans-Joachim Baader wrote:
>>>
>>> In article <8emqk2$t3o$[EMAIL PROTECTED]>, Rao VA <[EMAIL PROTECTED]> wrote:
>>> >I've been investigating processes for anamolies, the only suspect is an xntpd
>>> >that's constantly in the Run state, however doesn't seem to consume CPU
>>> >cycles. I can't kill this process and even though the process is in the Run
>>> >state, a 'strace' on the process doesn't show anything.
>>>
>>> This is of course the culprit. However, if you can't kill it, I don't know
>>> of a way to get rid of it except rebooting. On the other hand, it would
>>> be useful to find out how it happened.
>
>> # kill -KILL <process id>
>> really should be able to kill it (as SIGKILL cannot be caught).
>
>I know, but it doesn't. It's the only process in the run state and it
>doesn't seem to be consuming CPU cycles. Is there a utility that can
>identify resources (file/socket descriptors) owned by a process? It's as if
>there's a deadlock.
>
look in /proc/<pid> or check out lsof
Jurriaan
--
I do then with my friends as I do with my books. I would have them where I can
find them, but I seldom use them.
Emerson
GNU/Linux 2.2.15pre20 SMP 4 users load av: 0.03 0.10 0.18
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: ?Linux RS/6000 ?
Date: 3 May 2000 19:36:38 GMT
In article <[EMAIL PROTECTED]>,
Edcoy <[EMAIL PROTECTED]> wrote:
| If Linux supports the PowerPC.
| And Linux supports Microchannel.
| Why doesn't support a Microchannel PowerPC (RS/6000)?
| Would it be a simple task to produce a capable kernel?
Hard to tell how hard it would be, gcc certainly has the right modes
to do the compile or cross compile, I think the hard parts would be the
drivers. I can't see bothering with ports to stuff like R20's, etc,
since they are dog slow as well as large, power hungry, and several
other bad things. But I'd love to see a port for R5-'s, I have a fair
bunch of them which would be a lot more fun as Linux machines.
I'm moderately sure that the early power ports didn't do SMP, but I
have no idea where the project is now. There was a native port and a
mklinux port as I recall.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: Weiguang Shi <[EMAIL PROTECTED]>
Subject: local_table and main_table?
Date: Wed, 3 May 2000 13:43:56 -0600
Hi, there:
I am hacking the network code of kernel version 2.2.13. The two tables
in fib_frontend.c puzzled me. Could you please tell me why there are two
tables and what are their respective usage?
It is even more desirable if you can shed some light on the routing table
lookup data structures and procedures.
Thanks very much.
Weiguang
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: Hacking on mkdep.c
Date: 3 May 2000 19:48:33 GMT
In article <[EMAIL PROTECTED]>,
Sverker Wiberg <[EMAIL PROTECTED]> wrote:
| I'm experimenting with mkdep.c from Linux 2.3.99 for an internal project
| here at Ericsson Utvecklings AB. To make it more useful here, I have
| made some modifications (flags to skip system headers, support for
| Erlang) -- which I now want to fold back into the official distribution.
|
| So: Who is in charge of mkdep.c?
|
| (Btw, I was impressed by its mmap() trick.)
Any help in the "Maintainers" file? Other than that I can't find a
good way to identify anyone who will accept patches for some particular
bit.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
------------------------------
From: "Cihl" <[EMAIL PROTECTED]>
Subject: Re: A need for better insallation programs
Date: Wed, 03 May 2000 20:47:30 GMT
I think what this guy wants is something GUI-based, like Windows'
InstallShield, right?
Well, this tool is being ported to Linux right now. Let's see how it handles
things.
B.t.w. I -did- see a nifty little install-tool with JBuilder, called
InstallAnywhere. Has anybody else seen it? It works even simpler than
InstallShield, IMHO. Very nice, maybe this could be used more.
------------------------------
From: "Pierre Haddad" <[EMAIL PROTECTED]>
Subject: Annuaire France-Net
Date: Wed, 3 May 2000 23:12:33 +0200
Reply-To: "Pierre Haddad" <[EMAIL PROTECTED]>
Aujourd'hui lancement du site france-net annuaire des logiciels pour
l'entreprise-services aux entreprises-createurs de sites-developpeurs
pointez votre Navigateur sur le site : http://france-net.net
Nombreux services gratuits
hebergement-metamoteur de recherche-votre journal online-bannieres
gratuites-programme partenaire
Tous les servicesde ce site sont entierement gratuits.
Suggestion ou remarque : [EMAIL PROTECTED] ou directement surle forum
Bonne journ�e a vous
PPB
------------------------------
From: [EMAIL PROTECTED] (Jonathan Buzzard)
Subject: Re: serial/parallel port programming...
Date: Tue, 2 May 2000 21:38:54 +0100
In article <8elie1$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Richard Puchmayer) writes:
> In article <NH8O4.32153$[EMAIL PROTECTED]>,
> Mark Graybill <[EMAIL PROTECTED]> wrote:
> -I have used serial port hardware handshaking lines in the past (CTS, DSR,
> -DCD, RI) because of how easy it was
>
> Did you use any existing device driver/API or did you use outb/inb
> to acheive your goal.
>
> I'm trying to control the DTR line on a serial port that is ALSO
> being used fro serial comms. Ie. there are two device connected
> to the same port.
>
> Can you help, or give pointers.
>
Hum, you can get and set the status pins using ioctl's on the port (i.e.
/dev/ttyS0 etc.). Something like
i = TIOCM_DTR;
ioctl(fd, TIOCMSET, &i);
would set the DTR line high. You can read the status with TIOCMGET, in
which case i on return holds the bitwise and of the various flags.
Search the ioctl headers to find out the possible settings.
JAB.
--
Jonathan A. Buzzard Email: [EMAIL PROTECTED]
Northumberland, United Kingdom. Tel: +44(0)1661-832195
------------------------------
From: Eric Taylor <[EMAIL PROTECTED]>
Subject: Re: get_user and bottom half help
Date: Wed, 03 May 2000 14:54:33 -0700
David Wragg wrote:
>
> I can't think of any really satisfactory solution for the original
> poster's problem. Installing a timer that sends a signal to the
> process seems like the right way to start: it will make sure that you
> get a context switch to the process so you can play with its address
> space, even on SMP; a much more robust approach than checking current
> in various places. However, the drawback is that you can't handle
> signals in the kernel without hacking on arch-specific code. SIGCHLD
> is handled within the kernel in certain circumstances (see
> arch/i386/kernel/signal.c), so it is possible. But not from a module.
> It might be easier to use ptrace to inject appropriate signal handling
> code into the user space of the target process.
>
I have been reading Rubini's driver book, and with your comment,
it seems that I cannot use get_user from a BH or a task queue.
Is there a clean way to wedge code into the scheduler so that just
before
(or just after) it resumes my target task I could get control in my
module
running code that can poke around the process (if it's the one I am
interested in) w/o worrying about page faults and with
verify_area keeping me from acc vio's.
I think by using an extra r.t. process to force re-sched's i should be
able to get
my target task to be scheduled quite often, so i can get in and look
enough times to get a valid sample of where the process is.
--eric
------------------------------
From: "Marc E. Christensen" <[EMAIL PROTECTED]>
Subject: Biometric authentication and PAM
Date: Wed, 3 May 2000 16:08:28 -0600
Anyone know of sources for biometric authentication under Linux using PAM?
Thanks.
--
Marc Christensen | Check out the linux-access pages.
SysOp CDSS University of Utah | linux-access - Making a difference!
http://ssv1.union.utah.edu | http://ssv1.union.utah.edu/linux-access/
------------------------------
From: "Marc E. Christensen" <[EMAIL PROTECTED]>
Subject: Different PAM modules on a per-user basis?
Date: Wed, 3 May 2000 16:13:47 -0600
Is is possible to have different users be authenticated using different
PAMs?
For example, I might like root users to be authenticated using s-key One
Time Password (OTP), while other users continue to authenticate using NIS+
or local accounts.
Basically different users or groups should authenticate using their own
"stack" o' PAMs).
Is the current Linux-PAM capable of this? Is it something that would be
valuable to others besides me?
--
Marc Christensen | Check out the linux-access pages.
SysOp CDSS University of Utah | linux-access - Making a difference!
http://ssv1.union.utah.edu | http://ssv1.union.utah.edu/linux-access/
------------------------------
From: "Nobody" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip
Subject: Re: Computer Terms.....(was "Re: MS caught breaking web sites")
Date: Thu, 4 May 2000 10:39:26 +1000
Back many years ago, Motorola like to called their processors MPU,
as contrast to CPU. I think people should stick with MPU rather
than CPU.
MPU - Microprocessor Unit.
David Gillam <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Chris Hedley wrote:
> >
> > In article <[EMAIL PROTECTED]>,
> > Mike Marion <[EMAIL PROTECTED]> writes:
> > > My mom still calls the whole case the CPU, I can't convince her that the
CPU is
> > > just the chip.
> >
> > The term CPU often refers to the enclosure in which the actual processor
> > complex(es) reside; the chip, OTOH, is more properly referred to as a
> > microprocessor or logic array (depending on the system involved.) Many
> > people think otherwise, however, which is what I believe is referred to
> > as "small computer thinking." :)
> >
> > Chris.
>
> Maybe I'm guilty of "small thinking", but.....
---8<--- snipped.
------------------------------
From: Nic <[EMAIL PROTECTED]>
Subject: Re: Ethernet Controller CS8900 supported by linux?
Date: Thu, 04 May 2000 13:56:34 +1200
Eko Bono Suprijadi wrote:
>
> Hi all,
> I have a PC104 Board with Ethernet Controller CS8900.
> Anyone knows, if this controller is supported by linux?
CS89xx chips are supported in kernel 2.2 and later.
Regards,
Nic.
--
J. Random Coder < sky at wibble dot net >
------------------------------
From: Chetan Ahuja <[EMAIL PROTECTED]>
Subject: Re: Code transfert from machine to another
Date: 4 May 2000 02:03:04 GMT
Nicolas Boulay <[EMAIL PROTECTED]> spoke thusly:
> Hi,
> Is it possible to run code by a machine throught a network from an other
> machine without using the file system ? More precisely, is it possible
> to make a programme that can execute some of this function by differents
> machines ? Those machines will not have any dedicated server for this
> program.
> nicO
It will help if you can describe what you want to do exactly. There
are various radically different methods ( eg. ranging from those which would
require specially hacked kernel or libc to those which could be done
in a very high level language like java without even knowing which
platform you're running on) for doing this sort of stuff
depending on what your constraints are.
Chetan
------------------------------
From: Eric Taylor <[EMAIL PROTECTED]>
Subject: gdb on /proc/kcore help?
Date: Wed, 03 May 2000 22:22:23 -0700
hi:
I'm reading Rubini' driver book and trying to
look at some variables i've added to my kernel.
In gdb, the symbol addresses are off from when i check
/proc/ksyms. Off about 200 bytes or so. My new globals
don't show up in ksyms.
Do I need to do anything special after a 'make boot' and
copy the /usr/src/linux/arch/i386/boot/zImage file into the
/boot directory.
Do I need to build a special symbol table? How do i get my
syms into ksyms.
Can anyone point me in the right direction?
thankx
--eric
------------------------------
From: "cschiu" <[EMAIL PROTECTED]>
Subject: Network interface failed when kernel change to 2.3.99-pre3
Date: 4 May 2000 05:21:12 GMT
Hello all,
I updated the linux kernel from 2.2.14 to 2.3.99-pre3,but the network are
failed.
It seems that the packet can be sent , but can't be received.
I use ifconfig to check the interface status , and I found the config was
same as 2.2.14.
So I believe that the ethernet interface is startup normally.
When I reboot linux , I see the message like this "IP defragment doesn't be
supported..." .
Is that a problem or other ?
Could somebody give me a comment ?
Best regards,
Cschiu
------------------------------
From: "cschiu" <[EMAIL PROTECTED]>
Subject: Network failed when kernel updated to 2.3.99-pre3
Date: 4 May 2000 05:27:15 GMT
Hell all ,
When I updated my linux kernel from 2.2.14 to 2.3.99-pre3,
I found my network can't work.
I used ifconfig to check the ethernet interface and compare with 2.2.14 ,
I found the status are same.
I use ping to test the network, It seems that the packet can be sent, but
can't be received.
When I reboot linux and saw the message something like this "IP defragment
can't be supported.."
Is that a problem or others ?
Could somebody give me a comment ?
Best regards ,
Cschiu
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: SHLVL discrepancies
Date: Thu, 04 May 2000 08:21:23 +0200
Anton North wrote:
> =
> When I am running one shell, my SHLVL environment variable is set to 1,=
and
> increments by 1 for every other shell that I run, which makes sense.
> =
> However, if I look at the environ file in /proc/<pid_of_shell>, I see t=
hat
> for the first instance of my shell, no SHLVL exists.
> =
> If I create a second shell, and check it's environ file in /proc, I fin=
d now
> that SHLVL exists, and is set to 1. If I run a third shell, it gets set=
to
> 2, etc.
> =
> My question is why this confusing system? I want to run a script that w=
ill
> kill wayward processes started by users, but _not_ terminate their orig=
inal,
> logged in shell. I thought to use the SHLVL's listed in the environ fil=
es in
> /proc to do this, and want to make sure that this value is reliable.
> =
> It seems that this discrepancy might be a bug. If it's not, I'd appreci=
ate
> it if anyone has any information on why this is done this way, or what =
to do
> about it. If you could send it to me via email too, that would be great=
;-)
This is just an educated guess:
A shell which does not find a SHLVL in its environment creates this
variable, sets it to 1 and exports it. Each shell down the line will
take its SHLVL value and increment it before you have a chance to check
for it.
The environ "file" is generated when the process is created. It is not
modified afterwards. So the top level shell wil not have a SHLVL in its
environ "file", the second shell will have in its environ "file"
whatever the top level shell hands over at fork() time, which is 1, etc.
Again, this is just a guess,
Josef
-- =
Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: gdb on /proc/kcore help?
Date: Thu, 04 May 2000 08:26:49 +0200
Eric Taylor wrote:
> =
> hi:
> I'm reading Rubini' driver book and trying to
> look at some variables i've added to my kernel.
> =
> In gdb, the symbol addresses are off from when i check
> /proc/ksyms. Off about 200 bytes or so. My new globals
> don't show up in ksyms.
> =
> Do I need to do anything special after a 'make boot' and
> copy the /usr/src/linux/arch/i386/boot/zImage file into the
> /boot directory.
> =
> Do I need to build a special symbol table? How do i get my
> syms into ksyms.
Don't you have to call the EXPORT_SYMBOL macro with your variables'
names?
E.g. look at the contents of =
/usr/src/linux/arch/i386/kernel/i386_ksyms.c
-- =
Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1
------------------------------
From: nilesh patel <[EMAIL PROTECTED]>
Subject: test_and_set_bit ()
Date: Thu, 04 May 2000 12:19:59 +0530
Is test_and_set_bit () guarenteed to be atomic on SMP architecture ?
Nilesh
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************