Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

varlink: add ability to talk to remote ssh Varlink service #32560

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on May 22, 2024

  1. varlink: support varlink communication via distinct input/output fds

    When invoking another process via a pair of pipes it makes sense to
    allow reading from one fd, and writing from another. Teach our varlink
    code to do so optionally.
    
    (sd-bus supports something similar, fill the gap).
    
    This is preparation for a later commit that uses this to talk to remote
    SSH invocations via pipes.
    poettering committed May 22, 2024
    Configuration menu
    Copy the full SHA
    520c6fc View commit details
    Browse the repository at this point in the history
  2. varlink: add new call varlink_connect_fd_pair() helper for two-fd cli…

    …ents
    
    This makes use of the functionality added in the previous commit to
    implement the client-side functionality for talking to servers via a
    pair of fds.
    poettering committed May 22, 2024
    Configuration menu
    Copy the full SHA
    1560b96 View commit details
    Browse the repository at this point in the history
  3. varlink: add new call varlink_server_add_connection_pair() for two-fd…

    … servers
    
    This adds the server-side for varlink connections over two distinct fds.
    poettering committed May 22, 2024
    Configuration menu
    Copy the full SHA
    81bf92f View commit details
    Browse the repository at this point in the history
  4. varlink: add helper that adds a connection via stdio to a varlink server

    This adds varlink_server_add_connection_stdio() as wrapper around
    varlink_server_add_connection_pair(), that steals stdin/stdout fds and
    turns them into a varlink connection. To be safe it replaces
    stdin/stdout with /dev/null fds.
    poettering committed May 22, 2024
    Configuration menu
    Copy the full SHA
    a13280e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5f22a55 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e727cca View commit details
    Browse the repository at this point in the history