From 48704798ea79a4cf0a4024ffcd18fc11ca03a43c Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Mon, 19 Mar 2012 15:52:03 -0700 Subject: run minadbd as shell user, remove unused code Make minadbd drop its root privileges after initializing. We need to make the /tmp directory writable by the shell group so that it can drop the sideloaded file there. --- minadbd/adb.h | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'minadbd/adb.h') diff --git a/minadbd/adb.h b/minadbd/adb.h index a989eddab..98fa5972e 100644 --- a/minadbd/adb.h +++ b/minadbd/adb.h @@ -41,7 +41,6 @@ typedef struct amessage amessage; typedef struct apacket apacket; typedef struct asocket asocket; -typedef struct alistener alistener; typedef struct aservice aservice; typedef struct atransport atransport; typedef struct adisconnect adisconnect; @@ -134,7 +133,7 @@ struct asocket { /* the adisconnect structure is used to record a callback that ** will be called whenever a transport is disconnected (e.g. by the user) ** this should be used to cleanup objects that depend on the -** transport (e.g. remote sockets, listeners, etc...) +** transport (e.g. remote sockets, etc...) */ struct adisconnect { @@ -194,30 +193,6 @@ struct atransport }; -/* A listener is an entity which binds to a local port -** and, upon receiving a connection on that port, creates -** an asocket to connect the new local connection to a -** specific remote service. -** -** TODO: some listeners read from the new connection to -** determine what exact service to connect to on the far -** side. -*/ -struct alistener -{ - alistener *next; - alistener *prev; - - fdevent fde; - int fd; - - const char *local_name; - const char *connect_to; - atransport *transport; - adisconnect disconnect; -}; - - void print_packet(const char *label, apacket *p); asocket *find_local_socket(unsigned id); -- cgit v1.2.3