summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-03-17 14:39:46 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-03-17 14:39:46 +0000
commit256b09ea3d17344e4f5638ad469b5355db3ffc43 (patch)
tree4903d5c41a472575af46311cda141f3ec3edd8ea /usr.sbin/bgpd
parenta49b4677f019d3b4914660e84a5f8ede4b09e99f (diff)
remove getpeereid() call so that those who have write access to the socket
(root:wheel 0640) can send queries, claudio ok
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/control.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c
index 7e862b42807..785bbd81f08 100644
--- a/usr.sbin/bgpd/control.c
+++ b/usr.sbin/bgpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.25 2004/03/02 19:29:01 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.26 2004/03/17 14:39:45 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -110,8 +110,6 @@ control_accept(int listenfd)
int connfd;
socklen_t len;
struct sockaddr_un sun;
- uid_t uid;
- gid_t gid;
struct ctl_conn *ctl_conn;
len = sizeof(sun);
@@ -125,16 +123,6 @@ control_accept(int listenfd)
session_socket_blockmode(connfd, BM_NONBLOCK);
- if (getpeereid(connfd, &uid, &gid) == -1) {
- log_warn("session_control_accept");
- return;
- }
-
- if (uid) {
- log_info("Control connection attempt from uid %ld", uid);
- return;
- }
-
if ((ctl_conn = malloc(sizeof(struct ctl_conn))) == NULL) {
log_warn("session_control_accept");
return;