-
Notifications
You must be signed in to change notification settings - Fork 415
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
[security & bug] Deprecate WPS & Fix Systemd Artifact #478
Comments
run without systemd is just an option for some distros. hostname is get from dbus. elogind seems to provide Use wifi from network manager is cover on #75 if needed, a PR to get hostname from local command is welcome. You can modify wpa_supplicant config to use keyboard PIN instead of WPS |
I'll have to take a look into that and see what effect that has on running it on ChromeOS
Interesting, ChromeOS doesn't use Network Manager. It uses an extremely locked down alternative known as shill (no command line. Can only be interacted with over dbus). Though I do notice that a few things from that issue could be used to fix the issues on ChromeOS
If I do end up forking miraclecast, I'll definitely submit one
If I do end up forking and writing that out, it may be worth deprecating that systemd dependency and make miraclecast platform-agnostic. However, I will say that this use case of miraclecast is pretty niche, and probably doesn't justify this platform-agnostic change. So I'll leave the topic of dropping the dependency on
I'm exploring that now. I'll have to find a way to not use device_name and device_type in the .conf file. That's currently what I'm having to work around at the moment. I'm not sure if disabling WPS on the original wpa_supplicant binary from hostapd disables those 2 fields or if it just disables it on ChromeOS's implementation. |
I do see this: elogind/elogind@7640a5d#diff-0462e381b2fb3286568215681c8983490a37ac9ae0f0c5ee304df7fa6426d4afR182 |
Found the current version: It was moved under this commit: systemd/systemd@681cfc6#diff-10f4d99565f6679227fc1c14a0bbea4a85084f4d7ec88e134903ea6138cff1c9 |
I was about to suggest https://gitlab.gnome.org/GNOME/gnome-network-displays (it is just a source not sink) but is even more heavily relying on network manager and dbus to configure Wifi P2P Feel free to fork and provide PR with changes |
So while trying to port miraclecast over to ChromeOS via Chromebrew, we ran over errors involving how
miracle-wifid
interacts withwpa_supplicant
Now to touch briefly on systemd. According to this issue, miraclecast is trying to move away from its systemd dependency, so obvioudly,
miracle-wifid
should not be pulling the hostname fromsystemd
ifsystemd
does not exist. It should be pulling the hostname from elsewhere (user input if you have to)Now the bigger issue is
Line 2: Invalid configuration line 'device_name=unknown'.
andLine 3: Invalid configuration line 'device_type=1-0050F204-1'.
After further discovery, we found the cause for the line 2 and line 3 errors was the fact that Chrome OS does not support WPS
Obviously, WPS is disabled on chromebooks for obvious security reasons, so this won't work on WPS-disabled systems
A better approach would be to support WiFi P2P (WiFi Direct) over WPA/WPA2 and deprecate WPS
The text was updated successfully, but these errors were encountered: