summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.gitignore5
-rw-r--r--Makefile7
-rw-r--r--ingest.c24
-rw-r--r--menu.c24
-rw-r--r--setup.c24
-rw-r--r--sshd_config2
-rw-r--r--view.c24
-rw-r--r--wrapper.c24
8 files changed, 132 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index cc74683..734cf37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,10 @@
 chroot.tar
 config.mk
+ingest
+menu
 root
+setup
 stream
 tags
+view
+wrapper
diff --git a/Makefile b/Makefile
index c27b886..a510ad2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,12 @@ LDLIBS = -lutil
 
 -include config.mk
 
-BINS = stream
+BINS += ingest
+BINS += menu
+BINS += setup
+BINS += stream
+BINS += view
+BINS += wrapper
 
 all: tags ${BINS}
 
diff --git a/ingest.c b/ingest.c
new file mode 100644
index 0000000..dde890a
--- /dev/null
+++ b/ingest.c
@@ -0,0 +1,24 @@
+/* Copyright (C) 2019  C. McEnroe <june@causal.agency>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <err.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sysexits.h>
+
+int main(void) {
+	// TODO: Read info, listen on socket, emulate terminal.
+}
diff --git a/menu.c b/menu.c
new file mode 100644
index 0000000..fbab9d3
--- /dev/null
+++ b/menu.c
@@ -0,0 +1,24 @@
+/* Copyright (C) 2019  C. McEnroe <june@causal.agency>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <err.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sysexits.h>
+
+int main(void) {
+	// TODO: Present menu of streams, option to create.
+}
diff --git a/setup.c b/setup.c
new file mode 100644
index 0000000..11bd01d
--- /dev/null
+++ b/setup.c
@@ -0,0 +1,24 @@
+/* Copyright (C) 2019  C. McEnroe <june@causal.agency>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <err.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sysexits.h>
+
+int main(void) {
+	// TODO: Stream name, terminal size, listed, instructions.
+}
diff --git a/sshd_config b/sshd_config
index 4a965d0..f7a3ea6 100644
--- a/sshd_config
+++ b/sshd_config
@@ -4,7 +4,7 @@ Match User stream
     PasswordAuthentication yes
     PermitEmptyPasswords yes
     ChrootDirectory /home/stream
-    ForceCommand ssh-command
+    ForceCommand wrapper
 
     AllowAgentForwarding no
     AllowTcpForwarding no
diff --git a/view.c b/view.c
new file mode 100644
index 0000000..77a236d
--- /dev/null
+++ b/view.c
@@ -0,0 +1,24 @@
+/* Copyright (C) 2019  C. McEnroe <june@causal.agency>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <err.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sysexits.h>
+
+int main(void) {
+	// TODO: Connect to socket, emulate terminal.
+}
diff --git a/wrapper.c b/wrapper.c
new file mode 100644
index 0000000..b3aaf28
--- /dev/null
+++ b/wrapper.c
@@ -0,0 +1,24 @@
+/* Copyright (C) 2019  C. McEnroe <june@causal.agency>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <err.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sysexits.h>
+
+int main(void) {
+	// TODO: Grab SSH_ORIGINAL_COMMAND, check isatty(3).
+}