diff --git a/remote/app/README.md b/remote/app/README.md index 2330997..9a566c3 100644 --- a/remote/app/README.md +++ b/remote/app/README.md @@ -1,3 +1,17 @@ # remoted This service creates a path on the relevent remote location, going through anything network-related: TCP, UDP, HTTP, ... + +# TODO + +### authorizations + +The idea is to have a simple configuration file for authentication of remote connections, such as: + + + clients = { "client123", alice.example.com, john@doe.com } + level1services = { pongd, weather } + + ifext = enp0s25 + pass in on $ifext from any for all to local services $level1services + pass in on $ifext from any for all to local services $level1services diff --git a/remote/app/remotec.c b/remote/app/remotec.c index ab8bfbc..6316b29 100644 --- a/remote/app/remotec.c +++ b/remote/app/remotec.c @@ -55,10 +55,9 @@ void main_loop (int argc, char **argv, char **env (void) argv; (void) env; -#if 0 - struct service srv; memset (&srv, 0, sizeof (struct service)); + remote_connection (argc, argv, env, &srv); printf ("connected\n"); diff --git a/remote/app/remoted.c b/remote/app/remoted.c index c623565..1a484a9 100644 --- a/remote/app/remoted.c +++ b/remote/app/remoted.c @@ -23,7 +23,12 @@ void handle_signal (int signalnumber) exit (EXIT_SUCCESS); } -void remoted_init () { /* TODO */} +void remoted_init () +{ + /* TODO + * handle authorizations + */ +} int main(int argc, char **argv, char **env) @@ -49,7 +54,7 @@ main(int argc, char **argv, char **env) // the service will loop until the end of time, a specific message, a signal remoted_main_loop (&srv); - // the application will shut down, and remove the service named pipe + // the application will shut down, and remove the service unix socket if (srv_close (&srv) < 0) { handle_error("srv_close < 0"); }