2.2.13pre9 ppp oddity

Max (max@physics.otago.ac.nz)
Sat, 18 Sep 1999 15:00:21 +1200


Hi all,

I just booted Alan's 2.2.13pre9.

(pppd v2.3.5
Kppp v1.6.2 KDE desktop dialer)

Trying to log on to my ISP, Kppp told me something like 'You do not
have ppp in your kernel, not even as a module. Go away!'
This is wrong. (It is the same configuration as for 2.2.12, which
works without
problems.)

This message does not come up after I do the following silly thing:
(don't ask me why I did it)

-start pppd on a root console
-kill pppd from another root console (since the first one is
unresponsive and full of garbage, of course)

After this, strangely, everything works fine ever after.
I have not tried other dial in procedures and I know that my pppd and
Kppp are not the latest/greatest.

Does the little change from 2.2.12 to 2.2.13pre9 in ppp.c (see below)
explain this behaviour?

--- linux.vanilla/drivers/net/ppp.c Sat Aug 14 02:26:16 1999
+++ linux.13p9/drivers/net/ppp.c Thu Sep 16 16:40:27 1999
@@ -371,6 +371,9 @@
ppp_tty_open (struct tty_struct *tty)
{
struct ppp *ppp;
+
+ if(!capable(CAP_NET_ADMIN))
+ return -EPERM;

/*
* Allocate a ppp structure to use.

Thanks for your time
Max

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/