Skip to content

Document remote connections via d-spy - #253

Draft
omarhogni wants to merge 1 commit into
mainfrom
document_remote_d_spy
Draft

omarhogni wants to merge 1 commit into
mainfrom
document_remote_d_spy

Conversation

@omarhogni

@omarhogni omarhogni commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

This could be open for a long time. Requires a merge request to actually go through and then a release of glib along with a release of d-spy.

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3705

@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

links remote dbus apis.

See [https://man.archlinux.org/man/core/systemd/systemd-stdio-bridge.1.en](https://man.archlinux.org/man/core/systemd/systemd-stdio-bridge.1.en)
This mail also describes the solution well [https://lists.freedesktop.org/archives/dbus/2018-April/017447.html](https://lists.freedesktop.org/archives/dbus/2018-April/017447.html) No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add steps to build, while we wait for the PR

@jbbjarnason

Copy link
Copy Markdown
Contributor

How to expose unix socket as localhost tcp port:

$ ssh -L 5555:/var/run/dbus/system_bus_socket -N graderroot

Second terminal

$ DBUS_SYSTEM_BUS_ADDRESS="tcp:host=127.0.0.1,port=5555" busctl --system monitor

@jbbjarnason

Copy link
Copy Markdown
Contributor

How to expose unix socket as localhost tcp port:

$ ssh -L 5555:/var/run/dbus/system_bus_socket -N graderroot

Second terminal

$ DBUS_SYSTEM_BUS_ADDRESS="tcp:host=127.0.0.1,port=5555" busctl --system monitor

Some complications, the remote which exposes the local tcp port to the unix fd does not know the user id & group id. So this would need to be queried beforehand to make the EXTERNAL authentication via the dbus socket

@jbbjarnason

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants