diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-08-31 20:07:03 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-08-31 20:07:03 +0000 |
commit | 709db7fbee4a8d67a3700767e38360c68e837a54 (patch) | |
tree | e513cbf407b7d509992540f921d8b5ac83423f7b /usr.sbin/ppp | |
parent | 2841b4feff187d40f31ac8ae01673d7176671bd3 (diff) | |
download | src-709db7fbee4a8d67a3700767e38360c68e837a54.tar.gz src-709db7fbee4a8d67a3700767e38360c68e837a54.zip |
Remove use of login_progok()
Suggested by: guido
Notes
Notes:
svn path=/head/; revision=28961
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/main.c | 10 | ||||
-rw-r--r-- | usr.sbin/ppp/ppp.8 | 18 | ||||
-rw-r--r-- | usr.sbin/ppp/ppp.8.m4 | 18 |
3 files changed, 5 insertions, 41 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 4980212dcbc8..0f29e642d909 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.73 1997/08/26 23:20:11 brian Exp $ + * $Id: main.c,v 1.74 1997/08/27 20:11:16 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -37,8 +37,6 @@ #include <arpa/inet.h> #include <netinet/in_systm.h> #include <netinet/ip.h> -#include <sysexits.h> -#include <libutil.h> #include "modem.h" #include "os.h" #include "hdlc.h" @@ -337,12 +335,6 @@ main(int argc, char **argv) ProcessArgs(argc, argv); if (!(mode & MODE_DIRECT)) VarTerm = stdout; - - if (!login_progok(getuid(), "/usr/sbin/ppp")) { - LogPrintf(LogERROR, "You do not have permission to execute ppp\n"); - return EX_NOPERM; - } - Greetings(); GetUid(); IpcpDefAddress(); diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8 index e9fc4e04fd28..3e722788d174 100644 --- a/usr.sbin/ppp/ppp.8 +++ b/usr.sbin/ppp/ppp.8 @@ -1,4 +1,4 @@ -.\" $Id: ppp.8,v 1.58 1997/08/26 23:20:16 brian Exp $ +.\" $Id: ppp.8,v 1.59 1997/08/27 20:11:16 brian Exp $ .Dd 20 September 1995 .Os FreeBSD .Dt PPP 8 @@ -129,18 +129,6 @@ with clients using the Microsoft .Em PPP stack (ie. Win95, WinNT) -.It Supports execution restriction. -If -.Nm /usr/sbin/ppp -is specified in the -.Dv prog.deny -list in -.Pa /etc/login.conf , -.Nm -will refuse to execute. Refer to -.Xr login_progok 3 -for further details. - .Sh GETTING STARTED When you first run @@ -2082,9 +2070,7 @@ Get port number if port number is using service name. .Xr uucplock 3 , .Xr syslog 3 , .Xr syslog.conf 5 , -.Xr syslogd 8 , -.Xr login.conf 5 , -.Xr login_progok 3 +.Xr syslogd 8 .Sh HISTORY diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4 index e9fc4e04fd28..3e722788d174 100644 --- a/usr.sbin/ppp/ppp.8.m4 +++ b/usr.sbin/ppp/ppp.8.m4 @@ -1,4 +1,4 @@ -.\" $Id: ppp.8,v 1.58 1997/08/26 23:20:16 brian Exp $ +.\" $Id: ppp.8,v 1.59 1997/08/27 20:11:16 brian Exp $ .Dd 20 September 1995 .Os FreeBSD .Dt PPP 8 @@ -129,18 +129,6 @@ with clients using the Microsoft .Em PPP stack (ie. Win95, WinNT) -.It Supports execution restriction. -If -.Nm /usr/sbin/ppp -is specified in the -.Dv prog.deny -list in -.Pa /etc/login.conf , -.Nm -will refuse to execute. Refer to -.Xr login_progok 3 -for further details. - .Sh GETTING STARTED When you first run @@ -2082,9 +2070,7 @@ Get port number if port number is using service name. .Xr uucplock 3 , .Xr syslog 3 , .Xr syslog.conf 5 , -.Xr syslogd 8 , -.Xr login.conf 5 , -.Xr login_progok 3 +.Xr syslogd 8 .Sh HISTORY |