Skip to content

Allow connection to a VDE switch run by the same user#3681

Merged
OBattler merged 1 commit into
86Box:masterfrom
redoste:vde-mode-fix
Mar 28, 2024
Merged

Allow connection to a VDE switch run by the same user#3681
OBattler merged 1 commit into
86Box:masterfrom
redoste:vde-mode-fix

Conversation

@redoste

@redoste redoste commented Sep 5, 2023

Copy link
Copy Markdown
Contributor

Summary

Allow connection to a VDE switch run by the same user because libvdeplug will only change the mode if the switch is run by another user that isn't root.
If the switch is run by the same user as 86Box the socket will be chmoded to 000 and the switch, unable to connect back, will drop the connection.

Checklist

References

https://github.com/rd235/vdeplug4/blob/187256c528137036cc4e3228728b3f70a3342fa5/libvdeplug4/libvdeplug_vde.c#L261-L275

`libvdeplug` will only change the mode if the switch is run by another
user that isn't root.
If the switch is run by the same user as 86Box the socket will be
chmoded to 000 and the switch, unable to connect back, will drop the
connection.

https://github.com/rd235/vdeplug4/blob/187256c528137036cc4e3228728b3f70a3342fa5/libvdeplug4/libvdeplug_vde.c#L261-L275
@OBattler
OBattler merged commit f5dabe8 into 86Box:master Mar 28, 2024
@cold-brewed

Copy link
Copy Markdown
Contributor

Thanks for the PR!

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.

3 participants