Skip to content

Let's isolate xz from sshd #366

@JustinCappos

Description

@JustinCappos

We'd like a POC that isolates xz from sshd. See here if you don't know why this is an interesting thing to make.

An easy way to do this is to set up an rpc client / server and to run sshd and xz in different cages. The eventual setup will have the rpc client run from sshd, which will call into the rpc server which runs xz.

A few tips:

  • A good first step is to compile a "hello world" rpc client / server and get this running first to communicate between cages
  • The chosen rpc library should use Unix Domain Sockets or Pipes for communication in order to be fast
  • You should try to compile sshd normally natively and also for Lind first, before making any changes
  • You only need to have your rpc server for xz understand the calls that sshd uses
  • Ideally your changes will be minimal. Try to avoid changing code you don't need to change.
  • You would normally want to restrict the system call API for the xz program, but for simplicity, you can ignore this for now.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions