diff --git a/pkg/types/backend.go b/pkg/types/backend.go index aafbfe4aa..de64e2f29 100644 --- a/pkg/types/backend.go +++ b/pkg/types/backend.go @@ -220,7 +220,6 @@ const ( StubTypeASGIServe string = "asgi/serve" StubTypeScheduledJob string = "schedule" StubTypeScheduledJobDeployment string = "schedule/deployment" - StubTypeScheduledJobShell string = "schedule/shell" StubTypeBot string = "bot" StubTypeBotDeployment string = "bot/deployment" StubTypeBotServe string = "bot/serve" diff --git a/pkg/worker/base_runc_config.json b/pkg/worker/base_runc_config.json index 01771a061..5a203e344 100644 --- a/pkg/worker/base_runc_config.json +++ b/pkg/worker/base_runc_config.json @@ -86,7 +86,7 @@ ] }, "rlimits": [], - "noNewPrivileges": false + "noNewPrivileges": true }, "root": { "path": "rootfs", @@ -428,16 +428,6 @@ "type": "bind", "source": "/workspace/sdk", "options": ["ro", "rbind", "rprivate", "nosuid", "nodev"] - }, - { - "destination": "/run/sshd", - "type": "tmpfs", - "source": "tmpfs", - "options": [ - "nosuid", - "nodev", - "mode=0755" - ] } ], "hooks": { diff --git a/sdk/src/beta9/abstractions/shell.py b/sdk/src/beta9/abstractions/shell.py index cc1638bd6..b1e375bf9 100644 --- a/sdk/src/beta9/abstractions/shell.py +++ b/sdk/src/beta9/abstractions/shell.py @@ -139,8 +139,6 @@ def posix_shell(chan: "paramiko.Channel"): # noqa: C901 oldtty = termios.tcgetattr(sys.stdin) - # input_history = [] - try: tty.setraw(sys.stdin.fileno()) tty.setcbreak(sys.stdin.fileno()) @@ -169,7 +167,6 @@ def posix_shell(chan: "paramiko.Channel"): # noqa: C901 # Until we reach the end of the pasted text while key != END_PASTE: chan.send(key) - # input_history.append(key) key = posix_readkey() # We've exhausted the paste event, wait for next event continue @@ -177,14 +174,10 @@ def posix_shell(chan: "paramiko.Channel"): # noqa: C901 if len(key) == 0: break chan.send(key) - # input_history.append(key) finally: termios.tcsetattr(sys.stdin, termios.TCSADRAIN, oldtty) - # Useful in debugging how control characters were send - # print(input_history) - # thanks to Mike Looijmans for this code def windows_shell(chan: "paramiko.Channel"):