eclipse-kura / kura

Eclipse Kura™ is a versatile framework to supercharge your edge devices, streamlining the process of configuring your gateway, connecting sensors, and IoT devices to seamlessly collect, process, and send data to the cloud.
https://eclipse.dev/kura/
Eclipse Public License 2.0
506 stars 312 forks source link

fix(distrib): add wpa_supplicant dbus permissions only on NN profiles #5264

Closed marcellorinaldo closed 5 months ago

marcellorinaldo commented 5 months ago

This PR adds a check for adding DBUS permissions to kurad user for managing WPA supplicant only on networking profiles. Furthermore, it fixes the missing -nn flags in no-network installations.

Related Issue: N/A.

Description of the solution adopted: N/A.

Screenshots: N/A.

Manual Tests:

  1. /etc/dbus-1/system.d/wpa_supplicant.conf exists and contains a policy for kurad on networking profiles.
  2. /etc/dbus-1/system.d/wpa_supplicant.conf is not modified on NN profiles.
  3. /etc/dbus-1/system.d/wpa_supplicant.conf is restored at uninstallation on networking profiles.
  4. Can connect to an access point as client.
  5. Can serve as AP.

Any side note on the changes made: N/A.

marcellorinaldo commented 5 months ago

Tested generic-arm32, generic-arm32-nn, Dockers.