summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-08-31 20:07:03 +0000
committerbrian <brian@FreeBSD.org>1997-08-31 20:07:03 +0000
commit4ac4d60bc7830f1fa058d8a8f7a727ca2f0377d5 (patch)
tree14ecef37ba73da823e549a7df79016d16054e580 /usr.sbin/ppp
parent03cddbd34b70cc97fbd01ca3734fbb044adeefc4 (diff)
downloadFreeBSD-src-4ac4d60bc7830f1fa058d8a8f7a727ca2f0377d5.zip
FreeBSD-src-4ac4d60bc7830f1fa058d8a8f7a727ca2f0377d5.tar.gz
Remove use of login_progok()
Suggested by: guido
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/main.c10
-rw-r--r--usr.sbin/ppp/ppp.818
-rw-r--r--usr.sbin/ppp/ppp.8.m418
3 files changed, 5 insertions, 41 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 4980212d..0f29e64 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 e9fc4e0..3e72278 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 e9fc4e0..3e72278 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
OpenPOWER on IntegriCloud